Archive API docs
    Jump to

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

    MCP overview

    Use Archive’s Model Context Protocol (MCP) server to connect an AI agent to your workspace. The agent can search content, read creator profiles, and manage saved views through tools.

    Each tool calls one public GraphQL query or mutation on /api/v2. Both interfaces use the same validation, workspace permissions, and rate-limit rules.

    To connect, follow Use with Claude, Use with ChatGPT, or Connect a client. Then call getWorkspaces to choose where to work.

    Endpoint
    POST https://app.archive.com/api/v2/mcp

    The transport is Streamable HTTP carrying JSON-RPC 2.0 request bodies. The endpoint is stateless: it issues no session ID, so every request must carry its own credentials.

    The tool surface

    There are 44 read tools and 64 write tools. Each public query and mutation has a matching tool. Its API reference page links to that tool. Alpha features require an opt-in header on both interfaces.

    Tool names follow the GraphQL field in camelCase, except where a different name is clearer for agents: items is exposed as searchItems and creators as searchCreators. Everything else is get* for a read and the mutation’s own name for a write.

    Campaign provisioning is available without an alpha header. Use getCampaign to read a campaign, createCampaign to create one with your external key, and updateCampaign to rename it, change its end date or update its creators and posts. Campaign writes require the normal write permission. Creator additions run asynchronously. An update can apply valid entries while returning userErrors for others. Check the returned state and operation progress before retrying.

    Authentication

    The endpoint accepts two credential types, tried in this order:

    CredentialHow you get itWrite access
    Bearer tokenAn API token from the Integration tab, also used for /api/v2Yes, in the workspaces the token can access
    OAuth 2.1Your MCP client registers with Archive; the person authorizes it in-appOnly if they granted the optional write scope at consent time

    Archive issues and validates its own tokens. Clients do not decode them. The server publishes RFC 9728 protected-resource metadata and RFC 8414 authorization-server metadata, and supports RFC 7591 Dynamic Client Registration, so a compliant client can discover and register on its own. See Connect a client.

    An unauthenticated initialize, tools/list, or tools/call returns HTTP 401 with a WWW-Authenticate challenge — the signal MCP clients use to begin the OAuth flow.

    Workspaces

    A credential can have access to several workspaces. For each tool call, Archive chooses the workspace in this order:

    1. The workspaceId argument on the call — a workspace UUID, or the numeric ID shown in the app.
    2. The WORKSPACE-ID header.
    3. The credential’s sole workspace, when it can access exactly one.

    Call getWorkspaces first. It’s the only tool that doesn’t need a workspace, and it returns every workspace the credential can access.

    A valid credential with an inaccessible workspace gets HTTP 200 with isError: true. Unknown workspaces and workspaces outside your access return the same message. See workspace errors for the response format and next steps.

    Rate limits

    MCP and GraphQL calls share each workspace’s rate-limit budget. A tool’s cost comes from the GraphQL operation it runs, including the fields it selects. See Rate limits for request costs, limits, and retry guidance.

    What is not listed here