# Rate limits

How much you can send, how to tell when you are close, and what to do when you get a 429.

## The limits

| Limit | Default | Counted per |
|---|---|---|
| Requests a minute | 120 | key (or OAuth app connection) |
| Of those, writes (POST, PATCH, DELETE) a minute | 30 | key. Pausing and lowering a budget never count here. |
| Requests a minute, all keys together | 480 | team |
| Ad platform requests running at the same time | 4 | team. Pausing and lowering a budget never wait for this. |

In plain words: each key may make 30 writes (POST, PATCH, DELETE) a minute, inside its 120 requests a minute (pausing and lowering a budget never count as writes). When a key goes over, the answer is 429 with `Retry-After`. The [SDK](/developers/sdk) and the [CLI](/developers/cli) wait and try again by themselves, with the same Idempotency-Key, so you do not need to do anything.

On top of these, the same limits as the AI tools apply:

- **A fair daily share of each ad platform.** Some platforms give AskAds one allowance for all customers. Each team gets its fair share of it per day, so one busy team never uses up another's. When it is used up the answer is 429 [`platform_daily_share_used`](/developers/errors#platform_daily_share_used) until the next day (UTC).
- **The daily pause allowance**: 200 pauses and budget cuts a team, 100 a person, per day. API, CLI, automations and AI tools share it. Over it: 429 [`pause_allowance_used`](/developers/errors#pause_allowance_used).
- **The ad platform itself** may ask us to slow down: 429 [`platform_rate_limited`](/developers/errors#platform_rate_limited).

Limits are counted separately for every team. One team sending a flood never slows another team down.

## Headers on every answer

| Header | Meaning |
|---|---|
| `RateLimit-Limit` | Requests this key may make per minute. |
| `RateLimit-Remaining` | Requests left in this minute. |
| `RateLimit-Reset` | Seconds until the minute starts again. |
| `Retry-After` | On a 429: seconds to wait before trying again. |

## When you get a 429

1. Wait for `Retry-After` seconds (or `RateLimit-Reset` if there is none).
2. Send the request again with the **same** `Idempotency-Key`, so a write never runs twice.
3. Back off further if it happens again: double the wait each time, up to a minute.

The SDK and the CLI do all of this by themselves.

| Code | Means |
|---|---|
| [`too_many_requests`](/developers/errors#too_many_requests) | Over the per-minute limit of the key or the team. |
| [`too_many_at_once`](/developers/errors#too_many_at_once) | Too many platform requests of your team are running at the same moment. Retry in a second. |

Pausing and lowering a budget are never held back by the write limit or by the "at once" limit, so you can always stop spend.
