# Rate limits

> 600 requests per minute per key, 60 per minute for job-creating routes. 429 includes Retry-After and RateLimit headers.

Source: https://docs.wpwaterfall.com/developers/rate-limits

Two windows apply, both per API key (or per signed-in user) and both one minute long.

| Window | Limit | Routes |
|---|---|---|
| Standard | 600 requests per minute | Every route |
| Job-creating | 60 requests per minute | Every route that answers `202` with a Job: create and delete a site, restart PHP, clear the cache, deploy, back up, and the other routes that change a server |

A call that replays a stored `Idempotency-Key` answer does not count against the job window. The company as a whole also has a limit of 3000 requests per minute across all its keys and members, so more keys do not raise the limit. A company follows up to 60 live event streams at once, across jobs and builds.

Dashboard sign-in has its own limit that counts failures: five wrong passwords in 15 minutes for one account from one address lock that address out of that account for a minute, and the lock doubles on each further failure, up to 30 minutes. A Turnstile check appears after 3 failures for an account. [Rate limits by route](https://docs.wpwaterfall.com/developers/rate-limits-by-route) states it and lists the window each route uses.

## What happens when I hit a limit?

WP Waterfall returns `429` with `Retry-After` (seconds) and `RateLimit` headers.

| Header | Meaning |
|---|---|
| `RateLimit-Limit` | Maximum requests in the window you hit. |
| `RateLimit-Remaining` | Requests left in this window. |
| `RateLimit-Reset` | Seconds until the window resets. |
| `Retry-After` | Seconds to wait after a 429. |

The headers name the window the call hit: a job-creating route reports `RateLimit-Limit: 60`. The three `RateLimit-*` headers come on every answer that is counted, not only on a 429. The OpenAPI document declares them on every success, declares `401`, `403`, and `429` on every operation that can answer them, and declares `Retry-After` on every `429`, so a generated client reads them from its types. The health, readiness, and status probes are not counted and carry no limit headers.

Wait for `Retry-After` before you try again, and do not retry in a tight loop. To watch a job, follow its event stream instead of polling it.
