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

    Query your workspace data — items, creators, collections, views, and campaigns — through a single GraphQL endpoint. AI agents use the same surface through the MCP server at /api/v2/mcp.

    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
      }
    }'

    Popular destinations