# Rate limits

| Limit | Applies to | Past it |
|---|---|---|
| Brand sending volume | Every send-type operation, shared by every key and sign-in of the brand | `429 rate_limited` + `Retry-After` |
| Brand requests | Every call of the brand, REST and MCP together, shared by every key and AI app; a short burst is allowed | `429 rate_limited` + `Retry-After` |
| `POST /events` | Per key | `429 rate_limited` |
| One-time passcodes | Per recipient | `429 rate_limited` |
| Brand at once | The brand's requests running at the same moment, across its keys and sign-ins | `429 rate_limited` + `Retry-After` |
| Connected platform | The channel's platform asked to slow down | `429 rate_limited` + `Retry-After`, `errorCategory: "platform_rate_limit"` |
| Busy | Too many requests from your connection at the same moment | `503` + `Retry-After`; nothing was written, safe to retry |
| Docs MCP server | Per IP address | `429` + `Retry-After` |

Reads are not counted against the sending volume. There is no fee per call: a call pays only for what it causes, such as a message sent.

Every REST answer to a key or an AI app carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (when the brand's allowance is full again, in epoch seconds) for the brand's one limit, shared by its keys and AI apps; an MCP tool call counts against the same limit. Your own allowance and reset are on your Developers page. A `429` carries `Retry-After` and `retry: "wait"`: wait that many seconds before the next attempt. See [Idempotency and retries](idempotency.md).

## How it behaves

- Limits protect the brand and the connected platforms. Reads do not count against sending volume.
- An answer that may succeed later carries `Retry-After`. Wait that long, then retry the same call with the same `Idempotency-Key`.
- Some sends wait instead of failing: when the brand has no plan, or its month's usage and balance are used, an automatic send waits and the owner sends or skips it in the app. See [Errors](errors.md), `no_plan` and `usage_empty`.

## If it fails

| Answer | Cause | Fix |
|---|---|---|
| `429 rate_limited` | Too many requests right now | Wait `Retry-After`, then retry with the same `Idempotency-Key`. |
| `429` with `errorCategory: "platform_rate_limit"` | The channel's platform asked Otobiz to slow down | Same: wait `Retry-After`. Sending faster does not help. |
| `503` with `Retry-After` | Too many requests at the same moment; nothing was written | Retry after the wait. |
| `402` with `details.fix` | A plan, usage, balance or spending limit refusal, not a rate limit | Follow `details.fix` and `details.paymentUrl`. See [Errors](errors.md). |
