API Keys
All API requests require a Bearer token in the Authorization header:
API keys start with sk- and are created in the Dashboard under Settings → API Keys.
API keys are shown only once when created. Store them securely.
Required role
API access requires Moderator role or above in your team. Users with the basic USER role will receive a 403 Forbidden response.
Token limits
Every API call consumes tokens from your team’s subscription. The system enforces limits:
- Before each request: Token availability is checked (
enforceTokenLimit)
- After each request: Actual usage is tracked and deducted
When your token limit is exceeded, the API returns 429 Too Many Requests:
Error codes