Skip to main content

API keys (x-api-key)

Authenticate every request by passing your API key in the x-api-key header:
Do not send API keys in Authorization: Bearer. Bearer authentication is reserved for user session JWTs and OAuth tokens and will reject sk-cai-v1-... keys with 401 Unauthorized.

Creating and revoking keys

  • Who can create keys: Organization admins, from a signed-in Cloneable Office session under Settings → API Keys. Keys cannot be minted by another API key.
  • Expiration: Defaults to 90 days (or set to never expire). Revoking a key in Settings takes effect immediately.
  • Permissions: An API key is bound to one organization and inherits its creator’s live organization roles. If the creator’s role becomes read-only (data_manager_readonly) or they leave the organization, the key’s permissions update or stop immediately.
  • Read-only keys: Keys created by a read-only member can call GET endpoints and read-safe queries, while mutating (POST, PUT, PATCH, DELETE) calls return 403 Forbidden.

Rate limits

When a limit is exceeded, the API responds with 429 Too Many Requests. Back off and retry after a short delay.

Error format

Errors return JSON with a message string and an optional machine-readable code: