Authorization header.
API keys
API keys are scoped to an organization and created through the admin CLI or dashboard. Keys use the prefixsk_test_ and look like:
Making authenticated requests
Pass your API key as a Bearer token in theAuthorization header:
Error responses
| Status | Error | Description |
|---|---|---|
401 | Missing or invalid Authorization header | No Authorization: Bearer header provided |
401 | Invalid API key format | Key doesn’t start with sk_test_ |
401 | Invalid or revoked API key | Key not found or has been revoked |
403 | Organization is suspended | The org associated with this key is suspended |
429 | API key rate limit exceeded | Per-key rate limit exceeded (default: 1,000 req/hour) |
Rate limits
Each API key has a configurable rate limit (default: 1,000 requests per hour). Rate limit headers are included in every response:| Header | Description |
|---|---|
RateLimit-Limit | Max requests allowed in the window |
RateLimit-Remaining | Requests remaining in the current window |
RateLimit-Reset | Seconds until the window resets |
Key management
API keys can be managed through theagent-cards-admin CLI: