API reference
API keys
4 endpoints under /v1/api-keys.
api keys programmatic
Mint a new API key from the public API.
post
/v1/api-keysRequires API-key auth; JWT requests are refused. The parent key must hold keys:write and the org must have programmatic_api_keys_enabled. New scopes must be a subset of the parent's and must not include keys:write. The per-tier max_api_keys and max_scopes_per_key caps apply.
Requireskeys:write
Headers
X-Organization-IDstringoptional
Request body
namestringrequiredscopesstring[]requiredis_test_modebooleanoptionalworkspace_idstring (uuid)optional
Failures return the error envelope; branch on error_code.
Request
Response
organizations
List the caller's own API keys (org-bound).
get
/v1/api-keysRequireskeys:read
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
Request
Response
Revoke an API key.
post
/v1/api-keys/{key_id}/revokeIdempotent: an already-revoked key is returned with revoked_at set.
Requireskeys:write
Path parameters
key_idstring (uuid)required
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
Request
Response
List every OAuth scope a customer API key may carry.
get
/v1/api-keys/scopesRequireskeys:read
Headers
X-Organization-IDstringoptional
Failures return the error envelope; branch on error_code.
Request
Response