Authentication
Every request needs your API key in the Authorization header:
Authorization: Bearer ck_live_...Keys
- Create and revoke keys on the API page of the dashboard. You can have up to 10.
- A key is shown once, when you create it. We store only a fingerprint of it, so it cannot be recovered. If you lose one, revoke it and make another.
- A key acts as your account: it sees and controls your chats, orders and proxies, and spends your credits.
- Keys cannot open admin tools, and cannot create or revoke other keys.
Plan requirement
Keys work while the account has an active Pro or Scale subscription. If the subscription ends, requests return 403 with code api_plan_required. The keys are kept, and start working again when the subscription does.
Keeping keys safe
- Use them from servers, scripts and agents. Do not put a key in a web page or mobile app.
- Use a separate key for each agent or integration so you can revoke one without breaking the others. The dashboard shows when each key was last used.
- If a key leaks, revoke it. Revoking takes effect within a minute.
Errors
| Status | Code | Meaning |
|---|---|---|
| 401 | invalid_api_key | The key is wrong or has been revoked. |
| 401 | unauthorized | No Authorization header was sent. |
| 403 | api_plan_required | The account has no active Pro or Scale plan. |
| 403 | session_required | This action is only available in the dashboard. |