Authentication

Authenticate every Sprite AI API request with a Bearer token. How to find your API key, pass it in the Authorization header, and keep it secure.

Every request needs your key in the Authorization header.

Authorization: Bearer sai_sk_your_key_here

Create, name, and revoke keys on the API keys page. A missing or bad key returns 401; a revoked or expired one returns 403.

The full key is shown once, at creation. Treat it like a password: keep it server-side, never in client code or a repo. Lost it? Revoke and make a new one.

Rate limits

Each response carries your rate-limit state in headers.

HeaderMeaning
X-RateLimit-LimitRequests allowed per minute.
X-RateLimit-RemainingRequests left this minute.
X-RateLimit-ResetUnix time when the window resets.

Over the limit returns 429 with a Retry-After header. Back off until it passes, then retry. Limits are per key, so give separate workloads separate keys.

We use cookies to enhance your experience. Essential cookies are required for the site to function. You can choose to accept all cookies or only essential ones.

Cookie policy