Rate limits
Each API token may make 1000 requests per hour to the REST API. Reads and writes share that allowance.
The limit exists to protect the database behind the API. It does not apply to translation bundle downloads, which are static CDN files and are not part of this API, so the request you make most often is not the one being counted.
The MCP endpoint has its own limit
The MCP endpoint allows 5000 requests per hour per token, counted separately. An assistant working through one task makes many tool calls, so it gets a larger allowance, and it never eats into the 1000 your build or CI relies on. Everything else on this page applies to it unchanged: the same headers, the same fixed window, the same 429.
Signing in an AI app
The OAuth endpoints an AI app signs in through have no token yet, so they are not counted per token. /oauth/authorize and /oauth/register allow 300 requests per hour per IP address between them, and answer 429 with an OAuth error, {"error": "temporarily_unavailable"}, past it. One sign-in uses one or two. The token and revocation endpoints are not limited by IP: hosted assistants call them from a few shared addresses on behalf of all their users.
The window is fixed, not rolling
Quota is counted in a fixed one-hour window. When the window ends, the full allowance returns at once; it does not trickle back request by request. A client that spends its 1000 requests in the first two minutes waits out the remaining fifty-eight.
X-Localeo-RateLimit-Reset tells you how long that wait is.
Headers
Responses carry your current state, including error responses, which is how you
can tell that a 401 has been spending quota:
| Header | Meaning |
|---|---|
X-Localeo-RateLimit-Limit | Requests allowed per window. Normally 1000, and 5000 on the MCP endpoint. |
X-Localeo-RateLimit-Remaining | Requests left in the current window. |
X-Localeo-RateLimit-Reset | Seconds until the window resets and the allowance returns. |
HTTP/1.1 200 OKX-Localeo-RateLimit-Limit: 1000X-Localeo-RateLimit-Remaining: 987X-Localeo-RateLimit-Reset: 2384When you exceed it
A 429 carries Retry-After only: the X-Localeo-RateLimit-* headers are
not repeated on it, because Retry-After already tells you everything you need:
HTTP/1.1 429 Too Many RequestsContent-Type: application/jsonRetry-After: 3590{ "error": "rate limit exceeded" }Two behaviours worth designing around
Rejected requests still cost quota
The limiter runs before authentication, so a 401 consumes an allowance exactly as a 200 does. This is the failure mode that surprises people: a service with a stale token retries hard, burns 1000 requests against 401, and then starts reporting 429, so the symptom points at rate limiting when the cause is a bad credential.
If you see 429s you cannot account for, read X-Localeo-RateLimit-Remaining on your successful responses and check your token before asking for a higher limit.
Cached responses still cost quota
The limiter also runs before the response cache, so a request the cache answers is counted like any other. The cache makes a repeated request fast and spares the database, but it does not make it free. See Caching.
Backing off
A reasonable client:
- Reads
X-Localeo-RateLimit-Remainingand slows down as it approaches zero, rather than waiting to be rejected. - On
429, sleeps forRetry-Afterseconds and retries once. - Treats a second
429as a real error and surfaces it, rather than looping.
If 1000/hour is not enough
It usually is, because the high-frequency operation (fetching a bundle) is not rate limited at all. If you are approaching the limit, the cause is often one of:
- Polling for new releases too aggressively. The
latestCDN path lets you fetch the newest bundle with no API call at all. See Releases & bundles. - Fetching metadata per user or per request instead of once per deploy.
- Importing one key per request. An import takes up to 1000 keys at once.
- A retry loop against
401, as above.
If none of those apply, get in touch. The limit is configurable per deployment.