/api/v1/* and /mcp authenticates with a bearer token in the Authorization header. Incoming Cookie headers are stripped before authentication so browser sessions are never reused accidentally.
Credential types
- OAuth 2.1 (MCP connectors): Dynamic client registration (
/oauth/register) with PKCE (S256) at/oauth/authorizeand/oauth/token. Best for Claude, ChatGPT, Cursor, and interactive MCP hosts. - Pro developer API keys (
es_live_...): Long-lived server-to-server bearer tokens for CI pipelines, Zapier/Make automations, and LMS integrations. - Native app sessions: Scoped per-app tokens issued via Settings → AI apps (
POST /api/v1/connect).
Using Pro API keys
API keys are available to Pro accounts under Settings → API keys (/settings/api):
- One-time reveal: The full
es_live_...secret is displayed once at creation withCache-Control: no-store. Only its SHA-256 hash andes_live_...prefix are stored. - Limit & expiry: Up to
10active API keys per account, each valid for365days. - Route scope: API keys can access all non-destructive Studio REST and MCP routes (
GET /api/v1/me, projects, kits, runs, draft generation, specialist turns, and exports). Account deletion (POST /api/v1/account/delete) and project/kit mutation routes outside the connector allowlist return403 api_key_forbidden. - Optional share links: Check Allow creating public share links when minting a key to allow
POST /api/v1/kits/{kit}/lessonandPOST /api/v1/kits/{kit}/practice. Without this flag, those endpoints return403 links_not_allowed.
Auth error codes
Revoke any compromised key immediately from Settings → API keys. Revocation deletes its stored hash right away and subsequent API calls fail with
401 signed_out.