Skip to main content
Send your token as a bearer token in the Authorization header of every request.
The one exception is GET /exports/{id}/download, which takes no Authorization header: the signed link is the credential. Anyone holding a download link can read the data until the link expires, so treat it like the export it opens.

Tokens

A token belongs to one shop and reaches that shop only. If you manage several stores, hold one token per store. Create and revoke tokens in the ABConvert admin, under Integrations → API. Your shop needs MCP access or Public API plan access to create a new token. Existing tokens remain visible and revocable after a downgrade, even when /v1 use is blocked. Public API requests require Growth or higher under the new plan packaging (existing stores may retain access during rollout or through a grant). MCP remains available on Starter with the same tokens; a token does not itself grant Public API access. Model Context Protocol (MCP) supports both manually configured bearer tokens and OAuth connections. Directory OAuth access tokens expire after one hour; the connector refreshes them automatically. For ChatGPT or Claude desktop / web, follow the directory setup and use a connect code. For Claude Code, Codex CLI, and header-based clients, follow manual MCP setup.
Treat a token like a password. Store it in your secret manager, never in client-side code or a repository. If a token leaks, revoke it in the ABConvert admin. Revocation takes effect immediately.

Scopes

GET and HEAD need read_experiments, and so do POST /v1/experiments/{id}/results and POST /v1/experiments/{id}/exports, which read data and change nothing about the test. Every other request needs write_experiments. Scope and rate-limit budget are separate questions: see Rate limits. Write includes read, so a write token needs no separate read scope. New tokens default to read. Grant write only to integrations that manage tests.

Authentication errors

An expired token reads the same as one that never existed, so a sudden invalid_token on an OAuth connector token usually means “refresh, then retry.” Uninstalling the app also invalidates the shop’s tokens; reinstall to restore access. Each one returns the API’s standard error shape:
insufficient_scope adds a details object naming the token’s scope and the required one:
A 403 can also mean your plan doesn’t include the test type you asked for. Those errors share the permission_error type but carry different codes. See Feature availability.