| Surface | Credential | Header |
|---|---|---|
| REST API | DRF auth token (Token …) | Authorization: Token <token> |
| MCP server | MCP API key (ecn_mcp_…) | Authorization: Bearer ecn_mcp_<key> |
REST API tokens
Authenticate as a user and receive a token:/credits/wallet/,
/mcp/keys/) take an explicit organization_id — find yours in the organizations
array returned by GET /auth/me/:
MCP API keys
MCP clients use a separate key prefixedecn_mcp_. The key is scoped to one
organization and is shown only once at creation.
From the workspace
Sign in as an org owner → Settings → Connect external AI tools → Create key.
Copy the secret immediately.
Authorization: Bearer ecn_mcp_…,
X-MCP-API-Key, or X-Api-Key. Revoke a key with
DELETE /api/v1/mcp/keys/<key_id>/?organization_id=<org_uuid> (the
organization_id is required).