# Rate limits (/docs/api/rate-limits)

<Callout title="Not live yet" type="warn">
The API does not enforce rate limits yet, and responses carry no rate limit headers. The `rate_limited` error code is reserved for when it does.
</Callout>

Hosted checkout has its own limits on attempts per buyer, which you may see as `checkout_rate_limited` or `checkout_attempt_limit` on the checkout page. They don't apply to API requests.

## Planned limits [#planned-limits]

These starting limits may be tuned before launch:

| Bucket | Limit |
| --- | --- |
| Live key, all requests | 100 requests per 10 seconds |
| Test key, all requests | 50 requests per 10 seconds |
| `POST /checkout_sessions` and `POST /refunds` | 25 requests per 10 seconds, separately |

Every response will carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`. Over the limit, the API will return `429` with `rate_limit_error` / `rate_limited` and a `Retry-After` header in seconds.

## Handling 429 [#handling-429]

Build it in now so nothing changes at launch: on a `429`, wait `Retry-After` seconds (or back off exponentially with jitter if it is missing), then retry with the same `Idempotency-Key`. A rate-limited request has not run.