Skip to main content

API Keys

All API requests require a Bearer token in the Authorization header:
Authorization: Bearer sk-YOUR_API_KEY
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.
RoleAPI Access
UserNo
ModeratorYes
AdministratorYes

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": "Token limit exceeded",
  "remaining": 0,
  "reason": "Monthly token quota exhausted"
}

Error codes

StatusMeaning
401 UnauthorizedMissing or invalid API key
403 ForbiddenUser role insufficient (need Moderator+)
404 Not FoundCollection not found or not owned by your team
429 Too Many RequestsToken limit exceeded