Skip to main content

Base URL

Requests and responses are JSON, with snake_case fields. Every endpoint has an MCP tool that takes the same arguments.

Authentication

Send an API key as a Bearer token. It acts in its workspace.

Errors

An error has an HTTP status and a body with a stable code, a message that says what to do, a doc_url explaining the code, and the request’s request_id:
Every response carries its request ID in the x-request-id header too. Errors lists every code, what to do about it, and which errors to retry.

Paging

Lists come newest first. limit sets the page size; a page that has more after it includes next, which you pass as after to get the next page.

Versions and aliases

Endpoints that take a document version take either a version number or an alias, such as latest: {"version": 12} or {"alias": "latest"} in a body, ?version=12 or ?alias=latest in a query. Without either, they use latest, the newest version.