Public mode (no key required)
You can use the/v1/classify and /v1/tag endpoints without an API key. Requests without a key run in public mode with stricter limits:
- 1 request/min, 10K tokens/min, 1 concurrent
API Keys
For higher rate limits and full access, authenticate with a Bearer token.Getting your API key
- Sign in at classer.ai
- Go to API Keys
- Click “Create API Key”
- Copy and store the key securely
Using your API key
Environment variable (recommended)
Direct configuration
HTTP header
For direct API calls, include the key in theAuthorization header:
Security best practices
Never commit API keys to git
Never commit API keys to git
Use environment variables or a secrets manager. Add
.env to your .gitignore.Use different keys for dev and production
Use different keys for dev and production
Create separate API keys for each environment.
Rotate keys periodically
Rotate keys periodically
Delete old keys and create new ones regularly.
Error responses
| Status | Description |
|---|---|
401 Unauthorized | Missing or invalid API key |
403 Forbidden | API key doesn’t have permission |
429 Too Many Requests | Rate limit exceeded |