The Animam API supports multiple authentication methods.Documentation Index
Fetch the complete documentation index at: https://docs.animam.ai/llms.txt
Use this file to discover all available pages before exploring further.
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:| Scope | Description |
|---|---|
corpus:read | Read corpus |
corpus:write | Modify corpus |
conversations:read | View conversations |
settings:read | Read tenant settings |
settings:write | Modify settings |
tokens:read | List tokens |
tokens:write | Create/delete tokens |
* | Full access |
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
| Code | Message | Solution |
|---|---|---|
| 401 | Unauthorized | Missing or invalid token |
| 403 | Forbidden | Insufficient scope |
| 403 | Token expired | Create a new token |
Best practices
- One token per integration - Easier revocation
- Minimal scopes - Principle of least privilege
- Regular rotation - Change tokens periodically
- Environment variables - Never commit tokens