Bearer Token (recommended)
Use an API token in theAuthorization header:
Creating a token
- Go to Dashboard > API Tokens
- Click Create token
- Give it a descriptive name
- Select the required scopes
- Copy the token (displayed only once)
Scopes
Each token has specific permissions:Example
A token withcorpus:read can read the corpus but not modify it:
Session Cookie (Dashboard)
For the web dashboard only. Not usable for external API.Legacy API Key
For backward compatibility with older integrations:Legacy API Keys have full access. Migrate to Bearer tokens for finer control.
Authentication errors
Best practices
- One token per integration - Easier revocation
- Minimal scopes - Principle of least privilege
- Regular rotation - Change tokens periodically
- Environment variables - Never commit tokens