Rate Limiting
Rate limits protect the API from bursts and repeated attempts. A limit is not a promise about your account's plan, AI credits, or concurrent runs: those are separate checks.
Global Default
Limits can vary by route, caller, workspace, account capability, and service configuration. Authenticated and anonymous requests can have different budgets. Do not hard-code a universal requests-per-minute allowance into your client.
Use the response headers to understand the limit applied to the request. A successful request does not reserve capacity for the next one.
Auth Endpoint Limits
Login, registration, recovery, and account changes have additional abuse protections. Login throughput and repeated failed password attempts are separate limits: switching clients does not reset an account's failed-attempt protection.
If authentication returns 429, stop retrying and wait for the indicated delay. Repeated login attempts are not a token-refresh strategy; see Authentication.
Other Specific Limits
Sensitive operations can have their own limits. MCP also checks feature access and tool allowances separately from HTTP throughput. See MCP access and limits.
Handling Rate Limit Errors
When you exceed the rate limit, the API responds with HTTP 429 Too Many Requests:
{
"error": {
"code": "RATE_LIMITED",
"message": "Too many attempts. Please wait before trying again.",
"details": {
"retryAfterSeconds": 300
}
},
"meta": {}
}Rate-limited responses can include Retry-After (seconds to wait), X-RateLimit-Limit, and X-RateLimit-Remaining. Read the headers that are present; do not assume every protection uses an identical response. The message and delay in the example are illustrative. See Error Codes.
Recommended Client Behavior
- Respect the server's delay. Never retry earlier than
Retry-After. If it is absent, use bounded exponential backoff with random jitter. - Track your request rate. If you are approaching the limit, spread requests over time rather than sending them in bursts.
- Retry safely. Retry reads within a bounded budget. Before retrying a write, check whether it succeeded; reuse an idempotency key only where the operation supports one.
- Cache appropriately. Cache reads only when freshness and data-access rules allow it. Do not share private cached data across accounts.
Example Backoff Strategy
When Retry-After is absent:
Attempt 1: wait about 1 second, with jitter
Attempt 2: wait about 2 seconds, with jitter
Attempt 3: wait about 4 seconds, with jitter
Stop after a bounded number of attempts.A local backoff cap must never shorten a delay supplied by the server.