Authorization header. Each successful call deducts 1 credit from your account balance.
The header
sk_live_ prefix.
Getting a key
Create, view, and rotate keys on the API keys page in the dashboard. You can have multiple active keys at once — useful for separating environments (staging vs. production) or scoping access to a specific service.Rotation and revocation
Revocation is instant. The moment you delete a key in the dashboard, every in-flight request using it returns401 Unauthorized. Recommended pattern for rotation:
- Create the new key.
- Deploy the new key to your environment.
- Confirm requests succeed with the new key.
- Delete the old key.
What requires auth
Every endpoint under/api/ requires a valid bearer token starting with sk_live_. Requests without the header (or with a non-sk_live_ token) fall through to the anonymous code path and return 400 for missing device ID. Requests with a malformed or revoked sk_live_ key return 401 Unauthorized with body:
403 Forbidden:
error field is the machine-readable slug "no_credits", not a sentence — match on it programmatically. See errors for the full list.