Bearer keys
Every request needs your key in theAuthorization header:
401 unauthorized. An account whose API access has been revoked returns 403 forbidden, even with a key that still verifies. Access is re-checked on every request, so revocation takes effect immediately rather than at the next key rotation.
Keys
You can hold up to 5 keys at once. Use separate keys for staging and production so you can revoke one without taking the other down. Keys are shown once at creation and stored as a hash. Revoking is immediate.Optional headers
X-Subject
If you resell to your own customers, pass an identifier for the end user:
We do not store this value. It is used to scope a rate-limit counter and nothing else. It is your customer’s identifier, and we have no reason to hold it.
Idempotency-Key
If your client retries on timeout, send a unique key per logical request:
Keeping keys safe
- Never ship a key in browser or mobile client code. Call the API from your server.
- Store it in your secrets manager, not in source control.
- Rotate by creating a new key, deploying, then revoking the old one. Both work at once, so there is no gap.
- Set a monthly spend cap in Settings. It is the only hard stop if a key leaks or a loop misbehaves.