Skip to main content
Spotzee uses bearer-token authentication. Pass your API key in the Authorization header on every request:

Key types

Spotzee issues three API key types, each with a different prefix and scope.
Treat sk_ and ok_ keys as secrets. Never commit them to source control or embed in clients you do not control. Rotate immediately if you suspect a leak.

Choosing a key

Use a sk_ project key. It can call every endpoint in the project surface and is the primary integration path for sync, automation, and admin scripts.

Surfaces

Each key type maps to a base URL. Sending a key to the wrong surface returns 401 authentication_required.

Rotate a key

1

Mint the replacement

Generate a new key in Settings → API keys.
2

Roll the new key out

Update your integration to use the new key. Both keys are valid during the cutover window.
3

Revoke the old key

Confirm traffic on the new key, then revoke the old one. Revoked keys return 401 authentication_required immediately.

Errors

Next steps

Versioning

Pin a date-based release.

Rate limits

Per-key budgets and headers.

Idempotency

Make retries safe.

Errors

Status codes and the code catalogue.