Authentication and scopes
Send the correct Authorization header and request the scopes your integration needs
Authentication modes in the live API
The live public API accepts two credential types in the Authorization header:
- OAuth bearer tokens:
Authorization: Bearer <access-token> - API keys:
Authorization: sk-apik_<id>.<secret>
If you use an API key, do not add a scheme prefix. Send the raw key value.
Scope model
These scopes authorize Public API routes. They do not limit tools on the AskElephant MCP server, which acts with the connected user’s current AskElephant permissions.
Public API scopes follow {resource}:{action} naming. The current scopes are:
Some engagement reads also require additional scopes when you request expansions:
expand=contactsrequirescontacts:readexpand=ownerrequiresusers:read
Privacy-sensitive engagement reads also use an additive scope:
engagements:readreturns only non-private engagementsengagements:private:readis required withengagements:readto read private engagement detail, include private engagements in list responses, or read transcript timelines and transcript comments for private engagementsengagements:writeupdates non-private engagements onlyengagements:private:writeis required to modify private engagements
Bearer tokens
- Use bearer tokens when you need delegated user access.
- Tokens should be workspace-scoped and include the supported resource scopes required by the routes you call.
- Missing, expired, or malformed tokens return
401with aWWW-Authenticatechallenge.
API keys
API keys are best for server-to-server integrations:
- Format:
sk-apik_<id>.<secret> - Sent as the full
Authorizationheader value - Scoped to the workspace and Public API permissions assigned to the key
- Ideal for backend jobs, sync workers, and ingestion services