Archive API docs
    Jump to

    Narrow by kind with a prefix — q: queries, m: mutations, t: types, g: guides, f: fields and arguments.

    GraphQL · POST /api/v2

    Archive API documentation

    Read and update your Archive workspace with GraphQL. Work with items, creators, collections, views, and campaigns. To connect an AI assistant, use the MCP server at /api/v2/mcp.

    Create an API token in Archive's Integration tab, then replace the example token below with yours. Listing workspaces does not require the example's WORKSPACE-ID header. Follow Getting started for the full setup.

    First call · list your workspaces
    curl https://app.archive.com/api/v2 \
      -H 'Content-Type: application/json' \
      -H 'Authorization: Bearer docs_demo_token_0000000000000000000000' \
      -H 'WORKSPACE-ID: 6ccefa76-e8ba-5ab0-9c60-e48a9e235a4a' \
      -d '{
      "query": "query WorkspacesDefault($first: Int, $after: String) {\n  workspaces(first: $first, after: $after) {\n    totalCount\n    edges {\n      node {\n        id\n        name\n      }\n    }\n    pageInfo {\n      hasNextPage\n      endCursor\n    }\n  }\n}",
      "variables": {
        "first": 10
      }
    }'

    Documentation for agents

    Start with llms.txt for links to the guides and API reference in Markdown. For a guide or reference page, add .md to its URL to read the Markdown version. Read Agent conventions before using MCP tools to change data.

    Popular destinations