# Rate Limits & Quotas

Canonical: https://docs.bluehola.com/docs/reference/rate-limits
OpenAPI: https://docs.bluehola.com/openapi.yaml

The limits scattered across the individual guides are collected here so you can work out "why was this rejected". Every row states **who imposes** the limit: you can talk to us about the platform-side ones, whereas the Meta-side ones leave you only waiting or changing your process.

## Request rate limits

| Limit | Source | What you see | What to do |
| --- | --- | --- | --- |
| **600 requests/minute** per account (per API Key) | Platform | `429 RATE_LIMITED` | Back off and retry; `retryable: true` |
| Customer-facing invitation page endpoints are limited **per source IP** | Platform | 429 | These endpoints carry no API Key — the token itself is the credential |
| Meta API rate limit (codes `4` / `80007`) | Meta | Message failure code `META_RATE_LIMIT` | The platform backs off and retries automatically; no action needed |
| Cloud API throughput ceiling (code `130429`) | Meta | `META_THROUGHPUT_LIMIT` | The platform retries automatically |
| Too many messages in a short period from one sending number to one recipient (code `131056`) | Meta | `PAIR_RATE_LIMIT` | The platform retries automatically |

`429` responses are **not guaranteed to carry `Retry-After`** today. Check `error.retryable` first: when it is `true`, use exponential backoff with jitter; when it is `false` (for example `ENGAGEMENT_COOLDOWN`), do not retry automatically. If the server later starts sending `Retry-After`, prefer the wait time given in the header.

:::warning

`ENGAGEMENT_COOLDOWN` (429) is **not** a rate limit you can back off and retry. That recipient tripped Meta's per-person engagement ceiling (131049), and the platform rejects further templates outright during a local 24-hour cooldown — **retrying within those 24 hours extends Meta's block**. Wait, or send to a different recipient.

:::

## Phone number lifecycle

| Limit | Source | Notes |
| --- | --- | --- |
| **At most 10 register/deregister calls in 72 hours** | Meta | Exceeding it returns `133016` and blocks that number's registration capability for 72 hours. Do not register the same number over and over while debugging your onboarding flow. |
| Display name: **at most 10 changes in 30 days** | Meta | Submission starts a review; once approved you **must register again** for it to actually sync. |
| Verification codes are valid for about **10 minutes** and single-use | Meta | Repeated failures may trigger a temporary restriction. |
| Two-step verification cannot be turned off via the API | Meta | It can only be disabled by hand in WhatsApp Manager; the endpoint can only set a new value. |

## Content and media

| Limit | Source | Notes |
| --- | --- | --- |
| Upload size is checked **per media type**: 5 MB images, 16 MB audio, video and documents, 100 KB / 500 KB WebP stickers | Platform | Applies to `POST /v1/media` and `POST /v1/templates/media` (the latter accepts only JPG/PNG, MP4 and PDF). A file over its type's limit returns `400 VALIDATION_FAILED` before it reaches Meta (`details` gives `mimeType` / `sizeBytes` / `limitBytes`). Documents over 16 MB, up to Meta's 100 MB, must instead use the `link` form so Meta fetches them itself. See [Upload Media](../templates-flows-media/post-v1-media.md). |
| ~5 MB images / ~16 MB audio and video / ~100 MB documents | Meta | Checked **at delivery time**; the send endpoint does not pre-check — an oversized message gets a `202` first and only later turns `failed` via a status callback. |
| Meta media ids typically **expire after a few days** | Meta | Do not treat one id as a long-term asset library. |
| Temporary media download URLs expire after **5 minutes** | Meta | For long-term storage use the [proxy download](../templates-flows-media/get-v1-media-id-content.md). |
| At most **257 contacts** in one `contacts` message | Meta | — |
| **10 messages per hour** per Flow | Meta | Exceeding it gives `FLOW_THROTTLED` (132069); fix the Flow first, resending will not help. |

## Webhooks

| Limit | Source | Notes |
| --- | --- | --- |
| **10 second** timeout per regular delivery attempt | Platform | A `2xx` counts as success |
| Verification/test challenges time out after **5 seconds**, with at most **4 KB** of the body read | Platform | Shorter than a regular delivery because the caller is waiting synchronously |
| **7 retries, 8 attempts total**, over a window of about **38.6 hours** | Platform | A fixed table rather than exponential backoff; see [Idempotency & Retries](idempotency.md) |
| Custom secrets must be **at least 16 characters** | Platform | Leave it blank and the platform generates a random value prefixed `whsec_` |
| Endpoint URLs must be https and must not resolve to a private network | Platform | **Resolution is repeated before every delivery**, so repointing at a private address afterwards is blocked too |

## Other value constraints

| Field | Constraint |
| --- | --- |
| `Idempotency-Key` | ≤200 characters |
| Invitation `expiresInSeconds` | Defaults to 1800; configurable 300–86400 (24 hours maximum) |
| Ledger `days` | Only 7 / 30 / 90 are accepted; any other value is treated as 30 |
| Template message `components.parameters` | Count and order must match the template declaration **exactly** |

## Which failures the platform retries for you

The following message failure codes are marked "platform retries automatically" — you do **not** need to resend them yourself:

`INTERNAL`, `META_RATE_LIMIT`, `META_SERVICE_UNAVAILABLE`, `META_THROUGHPUT_LIMIT`, `PAIR_RATE_LIMIT`, `PHONE_SEND_RESTRICTED`, `UPSTREAM_META_ERROR`, `WABA_MAINTENANCE_MODE`.

Every other code is `retryable: false` — retrying gets you an identical result, so act on `customerAction` instead. The full table is in [Error Codes](../guides/error-codes.md).
