# Rate limits

> Each API key may make 120 requests a minute. Read the limit from the response headers and back off on 429.

Each API key may make **120 requests a minute**. The limit is counted in one-minute windows and is the same for the REST API and the MCP server. One MCP request counts once, even when it carries a batch of messages.

## Read where you stand

Every response carries three headers:

| Header | Meaning |
| --- | --- |
| `X-RateLimit-Limit` | Requests allowed in the window: 120 |
| `X-RateLimit-Remaining` | Requests left in this window |
| `X-RateLimit-Reset` | When the window ends, as a Unix time in seconds |

## When you go over

The answer is `429 rate_limited` with a `Retry-After` header in seconds. Wait that long and send the request again. A 429 is never remembered against an [Idempotency-Key](https://staffedly.com/docs/developers/idempotency), so the retry runs normally.

## Other limits

| Limit | Value |
| --- | --- |
| Requests with a key that is not accepted, from one address | 20 a minute, then `429` |
| Request body | 64 KB |
| Page size on lists | 200 records |
| Active API keys for one organization | 10 |
| Webhook addresses for one organization | 5 |
| Messages in one MCP batch | 20 |

## Staying under the limit

- Use [webhooks](https://staffedly.com/docs/developers/webhooks) to hear about changes instead of polling.
- Ask for `limit=200` on lists, and filter by date.
- Spread large backfills out, and stop when `X-RateLimit-Remaining` reaches zero.
