Archive API docs
    Jump to

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

    Use with ChatGPT

    Connect Archive to ChatGPT or Codex to search captured content, look up creators, and manage saved views from a conversation. Setup requires only the endpoint URL — there is no client ID, no token to copy, and nothing to install.

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

    Set up your client

    Follow the instructions for your client. After you authorize the connection, the client can read — and if you granted write access, update — content in the workspaces you can already access.

    Add Archive as a developer-mode connector. ChatGPT’s deep research is read-only — it drives a search/fetch tool pair and never writes or modifies anything — and Archive’s tools are named for the product surface instead: searchItems, searchCreators, getWorkspaces.

    1. Turn on developer mode for your account, as described above.
    2. Add a custom connector, paste the endpoint URL above, and choose OAuth authentication.
    3. Log in to Archive when the consent screen opens, and choose whether to grant the optional write scope.
    4. Back in the chat, enable the connector in the tools menu.

    What happens during authorization

    ChatGPT and Codex both connect with OAuth 2.1. You don’t create or paste an API token:

    1. The client’s first call gets HTTP 401 with a WWW-Authenticate challenge naming Archive’s protected-resource metadata.
    2. It fetches the authorization-server metadata and registers itself via Dynamic Client Registration — nothing to configure on Archive’s side.
    3. You log in at Archive’s consent screen and choose the scopes to grant. Without the optional write scope the connection is read-only.
    4. The client exchanges the authorization code for an opaque, Archive-issued access token scoped to what you approved.

    Each person authorizes their own connection, and ChatGPT and Codex register separately, so revoking one leaves the others working. Scopes are chosen at consent time only, so to change them, remove the connector and add it again.

    Verify it works

    Ask ChatGPT to list your Archive workspaces. If the connection works, it calls getWorkspaces and returns your actual workspace names and IDs. In Codex, /mcp lists the connected servers and the tools they expose. If the tool list is empty or every call returns 401, authorization didn’t complete — remove the connector and add it again.

    See Example prompts for more starting points, or Troubleshooting if something isn’t working.

    Running a server-side agent instead? A bearer token from the Integration tab also works, but it is a write-capable, server-side secret rather than a per-person authorization. See Connect a client for when to use which.