Guides
Authentication
Send your API key with every request.
Every request must include your API key (starts with sk_live_), using
either header:
Authorization: Bearer sk_live_xxx
X-API-Key: sk_live_xxx
Keep your key on the server side only. The API is designed for server-to-server use and does not serve browser cross-origin requests.
- Keys start with
sk_live_. Never share a key or commit it to source control. - Create, view and revoke keys in Dashboard → API Keys. A revoked key stops working immediately; generate a new one if a key ever leaks.
- Only active accounts can use the API.
When authentication fails
Authentication errors are returned before the request reaches the API, in a flat shape without request_id:
{ "error": "Missing API Key", "code": "API_KEY_MISSING" }
| Status | Code | Meaning |
|---|---|---|
| 401 | API_KEY_MISSING |
No key in Authorization or X-API-Key |
| 401 | API_KEY_INVALID_FORMAT |
The value does not start with sk_live_ |
| 401 | API_KEY_INVALID |
No such key |
| 401 | API_KEY_REVOKED |
The key was revoked in the dashboard |
| 403 | ACCOUNT_BANNED |
The account is banned |
| 403 | EMAIL_NOT_VERIFIED |
The account email is not verified yet |
| 403 | ACCOUNT_NOT_ACTIVE |
The account is not active |