Archive API docs
    Jump to

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

    Troubleshooting

    Common issues, their causes, and how to resolve them. Start with the table, then read the matching section.

    SymptomLikely causeFix
    HTTP 401 on every callMissing, revoked, or malformed credentialRecreate the token, or re-run the OAuth flow
    Tools missing from tools/listNo write scope, or alpha not opted inRe-consent with write; send the alpha header
    HTTP 200 with isError: trueWorkspace not resolved, bad arguments, or throttledRead the message; call getWorkspaces first
    Your role does not allow …The OAuth person’s workspace role denies the actionAsk a workspace admin to change the role
    Empty result setConflicting filters, wrong workspace, or uncaptured contentCheck workspace and date range; remove conflicting filters
    Connected account’s posts are missingConnection state does not establish capture coverageCheck monitoring and archived content
    Write returned userErrorsRejected or partially applied workVerify state; correct only failed parts

    Every call returns 401

    Check that the request includes Authorization: Bearer <token> and that you copied the full token. A missing, malformed, revoked, or disabled token returns the same error, so the message cannot identify which problem occurred. If the header is correct, create a new token in the Integration tab. For OAuth, remove the connection and authorize it again.

    Documented tools are missing

    tools/list advertises only what your credential can call. An OAuth connection without the write scope sees no write tools; alpha-gated tools are omitted unless the request sends X-Archive-Alpha-Features. Calling a hidden tool returns the same response as calling one that doesn’t exist. See Alpha features.

    Workspace can’t be resolved

    Call getWorkspaces and pass one of the returned IDs as workspaceId. Unknown workspaces and workspaces outside your access return the same error: HTTP 200 with isError: true. See workspace errors for the response format.

    Searches return nothing

    Use the UPPERCASE enum values in the tool schema. Invalid enum values can fail validation; valid but conflicting filters can return no results. Check the workspace and publication window, then remove filters one at a time.

    An item’s returned type describes its format. The itemTypes filter combines platform and format, so the values do not always match. See Core concepts for the mapping.

    Connected account’s posts are missing

    searchItems includes owned-account posts, including TikTok, once Archive has captured them in the selected workspace. accountNames and socialProfileIds filter that archive. They do not fetch a platform timeline or start monitoring. An integration’s CONNECTED status reports its connection state. Neither that status nor a profile’s verified badge guarantees post coverage. A TikTok connection sets up mention collection. It does not by itself monitor every post from that account. An empty search does not prove that the account published no posts.

    1. Confirm the workspace with getWorkspace and the account with getSocialProfile using its provider and accountName. Check the publication window (filter.takenAt) and remove conflicting filters. Keep the returned socialProfile.id for item searches.
    2. Inspect existing campaigns with getCampaigns and getCampaign; check their rosters with getCampaignCreators. Reuse a suitable campaign. Check its dates, tag rules, and any content conditions set in the app. App-created campaigns can have a null campaignType, so a type-filtered list can miss them. updateCampaign cannot change a campaign with a null campaignType; manage that campaign in the app.
    3. If the user wants new tracking or historical imports, use a connection with write access. Create a CREATOR_MONITORING campaign with createCampaign, supplying name, externalId, dateStart, and dateEnd. Use settings: { creatorMonitoring: { tagNames: [] } } to request available posts without a tag filter. Do not change an unrelated campaign to widen coverage. Clearing tags on a reused campaign leaves app-defined content conditions in effect.
    4. Add the creator with updateCampaign, passing the campaign’s id. When getSocialProfile returns socialProfile.creator.id, pass that creator ID in creators: { addCreatorIds: ["<creator UUID>"] }. Otherwise, use creators: { add: [{ provider: "TIKTOK", handle: "<account handle>" }] }. A social-profile ID does not belong in addCreatorIds. Monitoring can include the creator’s other supported linked profiles. Historical imports count toward the workspace’s allowance, so only start them when the user wants that work.
    5. Read userErrors and verify the campaign and roster. Handle-based creator imports, post capture, and indexing run asynchronously. A successful roster write does not mean posts are searchable yet. Do not repeat imports because creatorsCount has not changed. Before retrying an uncertain import, check progress with getOperations/getOperation and roster changes with getCampaignCreators.
    6. Search on a later run with filter.campaignsIds: ["<campaign UUID>"], provider: "TIKTOK", and socialProfileIds when known. Historical availability varies; Archive does not guarantee every post from the platform or a fixed completion time.

    If a correctly configured campaign still lacks known posts, contact support with the workspace, campaign, and profile IDs. Include the publication window, original post URLs, and any errors so the team can check capture and indexing.

    A write returned domain errors or partial success

    A tool can return isError: false or omit isError even when a write failed. Check userErrors and the returned payload. Valid parts of the request may already have changed state. Read each error’s field and message, verify current state, then correct only the failed parts. Do not replay the whole request assuming nothing changed.

    A tool result with a rejected write
    {
    "collection": null,
    "userErrors": [
      { "field": ["input", "name"], "message": "has already been taken" }
    ]
    }

    Requests are rate limited

    MCP and GraphQL calls share each workspace’s rate-limit budget. Check the RateLimit-Policy header for the limit. Follow the retry guidance in Rate limits & plans, and reduce page sizes or requested data if you keep hitting the limit.

    A write timed out

    Check whether the write completed using the read tool named in its description. For a delete, verify that the read returns null. Follow each tool’s documented retry guarantee, including any idempotentHint: true annotation.

    For createCampaign, retry the same valid input and externalId, with matching campaignType and settings. A retry returns the original campaign. It does not apply changed input or resume work interrupted after the campaign was saved. Do not retry non-idempotent creates, uploadItemFromUrl, or refetchEngagementBulk without first checking their outcome.

    updateCampaign creator additions enqueue imports. A lagging creatorsCount does not prove a request failed. Check getCampaignCreators and getOperations before retrying. Do not repeat additions while their imports may still be running.

    Client-specific issues

    • Claude.ai / Claude Desktop — a stale or wrongly-scoped authorization is fixed by removing the connector and re-adding it. Scopes are chosen only at consent time, so re-consenting is how you gain (or drop) write access.
    • Claude Code — run /mcp and re-authenticate; check the server is registered with claude mcp list.
    • ChatGPT — disconnect Archive, then connect it again to re-consent. Scopes are chosen only at consent time.
    • Codex — run /mcp in a session to see the connection, codex mcp list to check the server is registered, and codex mcp login archive to re-authenticate.
    • Clients via mcp-remote — clear the cached auth state in ~/.mcp-auth and reconnect.

    If none of this resolves the issue, contact us with the details listed in Support & contact.