Skip to main content

API keys

Send the key as a bearer token. A key is bound to one workspace and carries scopes.
Keys are shown once at creation and stored as a digest. Revoke a key with DELETE /v1/workspaces/{workspaceId}/api-keys/{keyId}; revocation is immediate.

Sessions (people)

Workspace owners sign in with POST /v1/auth/sessions and receive an HttpOnly cookie. State-changing session requests must carry an Origin header equal to the web origin. Sessions are how owners create API keys:
A request that carries both a session cookie and a bearer token is rejected with credential_conflict.

Request ids

Send X-Request-Id to correlate a call with your own logs; it is echoed back on every response and included in error envelopes.