Rate Limits
Platform DEP regulates message sending throughput per sender phone number to maintain stability and compliance with operator and Meta limits. No per-tenant rate limit is published. The primary send API (POST /v1/{phone_number_id}/messages) is asynchronous — your request is accepted with 202 Accepted (returning messages[0].id as msg_<uuid>), and messages are queued per sender number and sent at the pace Meta allows for that number.
How Throughput & Pacing Work
Section titled “How Throughput & Pacing Work”When you call POST /v1/{phone_number_id}/messages, the API returns 202 Accepted and places the message into the queue for that sender number. The platform then delivers messages to the destination channel at the sender number’s allowed pace.
When your send rate exceeds the number’s momentary capacity, messages are queued internally and paced out — rather than rejected immediately to the API caller.
Throughput Tier per Number
Section titled “Throughput Tier per Number”The sending rate to Meta follows the sender number’s throughput tier:
| Tier | Rate | Description |
|---|---|---|
STANDARD | ~80 messages/second | Default tier for standard numbers. |
HIGH | ~1,000 messages/second | High-throughput tier for high-volume numbers. |
A number’s throughput tier follows its platform configuration and WhatsApp quality tier from Meta. If a tier value is unrecognized, the system defaults to STANDARD.
Meta Limits: 130429 and 131056
Section titled “Meta Limits: 130429 and 131056”On the asynchronous API, temporary throttling from Meta is handled automatically by the platform:
- Sender number rate limit (
130429): When Meta answers “too fast” (130429), the platform waits and retries automatically. After 30 minutes of continuous throttling, the message fails with error code130429in themessage.status.failedwebhook. - Pair rate limit (
131056): When too many messages are sent to the same recipient in a short time, the message fails at once with error code131056in themessage.status.failedwebhook. The platform does not resend it, because sending to the same person again is your decision. If needed, resend from your system after a pause.
Send API Responses (Asynchronous)
Section titled “Send API Responses (Asynchronous)”HTTP statuses returned by POST /v1/{phone_number_id}/messages:
| Status | Meaning |
|---|---|
202 Accepted | Message accepted (messages[0].id formatted as msg_<uuid>) and queued for delivery. |
400 Bad Request | Invalid payload (error = validation_error or no_route_found). |
401 Unauthorized | Invalid or missing authentication token. |
402 Payment Required | Balance, message quota, or budget plan exhausted. |
409 Conflict | Resource conflict. |
429 Too Many Requests | capacity_exceeded — rare, when the platform’s global capacity is reached. Retry after a short delay (the response has no Retry-After header). |
500 Internal Server Error | Unexpected internal error. |
The error body is a flat JSON object with the following fields:
{ "code": 402, "error": "payment_required", "message": "Payment required: Insufficient funds to send message."}On 402 Payment Required, the message indicates which limit was exhausted:
"Insufficient funds to send message.""Message quota exhausted.""Budget plan exhausted for this category."
The error field is an error type slug (e.g. validation_error, payment_required, capacity_exceeded), not a nested object and not a type field. See Error Codes for the full list.
Sync API (Synchronous Bank Pattern)
Section titled “Sync API (Synchronous Bank Pattern)”If your account uses the Sync API (POST /api/v1/{phone_number_id}/messages and its aliases), the API answers after Meta accepts the message, so rate-limit responses differ from the asynchronous API:
429 Too Many Requests+Retry-After(seconds): returned when the sender number is above its throughput.429 Too Many Requests(overloaded) +Retry-After: 2: returned when the Sync API gateway is at capacity.409 Conflict: returned when a send is rejected by Meta, with the error body of the account’s Sync API profile.- Report endpoint (
GET /report-dashboard): returns503 Service Unavailablewith aRetry-Afterheader foroverloaded(2 or 10 seconds),report_preparing(retry after the given seconds), orreport_unavailable(10 seconds).
Clients calling the Sync API should retry 429 and 503 after Retry-After, and should not retry 4xx otherwise. See Sync API for the full contract.
Reliable Delivery Strategy
Section titled “Reliable Delivery Strategy”Because regular sends are queued and the final status is delivered via webhook, a reliable integration focuses on monitoring delivery status and handling transient responses cleanly.
- Treat
202 Acceptedas “accepted for processing”, not “delivered”. - Send the
Idempotency-Keyheader so safe retries within 24 hours return202with the firstmessage_idand headerIdempotent-Replayed: truewithout sending or billing again. - Monitor final status (
sent/delivered/failed) via webhooks. - Handle
failedmessages based on the error code in the webhook payload (including130429after 30 minutes of continuous throttling, or131056for the pair rate limit, which you can resend after a pause).
Send at a steady pace aligned with your number’s throughput tier so queues do not build up:
- Standard numbers (~80 messages/second) and high-throughput numbers (~1,000 messages/second) are paced at the number’s capacity.
- Use an application queue or job scheduler when dispatching large batches.
For transient errors (429 capacity_exceeded or 5xx), wait briefly with exponential backoff and jitter before retrying:
if response.status == 429 or response.status >= 500: wait(short_backoff_with_jitter) retry()Do not retry 4xx errors such as 400, 401, or 402 — fix the underlying cause first.
Anti-Patterns to Avoid
Section titled “Anti-Patterns to Avoid”Bulk Sending (High Volume)
Section titled “Bulk Sending (High Volume)”To send messages in large volume (campaigns, broadcasts), follow this guide:
1. Use the Campaign Feature
Section titled “1. Use the Campaign Feature”For sending to a large audience, use the Campaign feature in the portal. It handles queueing, pacing, and retries automatically according to your number’s capacity — without you needing to manage throttling yourself.
2. Load Distribution Across Numbers
Section titled “2. Load Distribution Across Numbers”If you have multiple phone_number_ids, distribute traffic evenly across them:
- Round-robin across
phone_number_id. - Because queueing and pacing apply per sender number, distributing across numbers increases aggregate throughput and avoids queue buildup on a single number.
3. Manual Pacing (Custom Integration)
Section titled “3. Manual Pacing (Custom Integration)”If you send via your own integration, avoid dispatching all messages in an unbounded synchronous loop. Pace your worker to match the sender number’s capacity (~80 messages/second for standard numbers, ~1,000 messages/second for high-throughput numbers), store messages[0].id on 202 Accepted, and retry only on 429 or 5xx.
Rate Limits per Channel (WhatsApp)
Section titled “Rate Limits per Channel (WhatsApp)”In addition to per-number pacing, Meta enforces limits at the WhatsApp Business Account and recipient level:
| Type | Limit | Description |
|---|---|---|
Per sender number (130429) | ~80 or ~1,000 messages/second | Automatically retried by the platform for up to 30 minutes before failing with code 130429. |
Pair rate limit (131056) | Limit on sends to the same recipient within a short time | Immediately fails with code 131056, with no automatic retry. Resend from your system after a pause if necessary. |
| Daily messaging limit | Determined by the phone number’s verification & quality tier | The higher the number’s tier on Meta, the higher the conversation limit. |
Monitoring and Observability
Section titled “Monitoring and Observability”To keep your integration healthy:
- Track webhook statuses (
sent/delivered/failed) to monitor actual delivery success. - Create alerts when the
failedmessage ratio rises, especially with codes130429or131056. - Monitor
429and5xxresponses from API calls to detect load spikes or transient issues. - Maintain a simple dashboard: total requests, status distribution (
202/4xx/5xx), delivery success rate from webhooks, andfailedcounts per error code.
Meta Daily Recipient Limit and Frequency Cap
Section titled “Meta Daily Recipient Limit and Frequency Cap”Under Settings > Send Limits in cpaas.id, you can configure protection for Meta’s daily unique-recipient tiers and set a per-customer message frequency cap.
1. Meta Daily Recipient Limit
Section titled “1. Meta Daily Recipient Limit”Meta enforces a limit on unique recipients of template messages per sender number over a rolling 24-hour window, determined by the number’s messaging tier (250, 1K, 2K, 10K, 100K, or UNLIMITED). You can choose one of three modes:
- Off (default): The platform does not hold messages against the daily tier counter before sending to Meta.
- Report only (Shadow): Messages are sent immediately while the platform counts how many messages would have been held today for visibility in the portal.
- Hold messages (Enforce): When a sender number reaches its 24-hour unique-recipient limit, template messages to new recipients are held in the platform queue (
outbound_held_messages) and released automatically as soon as the rolling 24-hour window frees capacity (with no maximum wait cutoff).
Exemptions and routing behavior:
- AUTHENTICATION (OTP) templates are counted toward the daily unique-recipient window, but are never held or skipped.
- The Sync API is not affected by send limits.
- When using a multi-number routing profile, sender numbers that have reached their daily tier limit are moved to the back of the candidate list. If all candidate numbers are currently full, a routing-profile send no longer returns
429in any mode: in Off and Report only (Shadow) modes the message is sent immediately, and in Hold messages (Enforce) mode the message is held until capacity opens.
2. Customer Frequency Cap
Section titled “2. Customer Frequency Cap”The frequency cap limits how many template messages can be sent to the same customer phone number (max N messages per X hours, where N is 1–100 and X is 1–720 hours) across all sender numbers and campaigns in your account.
- Categories counted: Choose
MARKETING,UTILITY, or both.AUTHENTICATIONtemplates are never capped. - Action when the cap is reached:
- Hold: The message is held and released automatically when the customer’s rolling window has room again.
- Skip: The message is not sent to Meta, fails immediately with reason
frequency_cap: this recipient already received N messages in the last X h (account frequency cap); message not sent., releases its balance reservation, and triggers amessage.status.failedwebhook.
3. Behavior of Held Messages
Section titled “3. Behavior of Held Messages”- Status lookups: While a message is held (before it is sent to Meta), status lookups return not found because the delivery log row is created only when the message is dispatched. You can view currently held messages on the Settings > Send Limits page.
- Balance reservation: A held message keeps its balance reservation until it is sent.
- Templates without a known category: If a template message is evaluated when its category is not yet known in cache, it is counted toward the Meta daily recipient limit (because it is not provably
AUTHENTICATION), whereas the frequency cap applies only when the template’s category matches one of your selected categories.
What happens if I send faster than my phone number’s capacity?
Section titled “What happens if I send faster than my phone number’s capacity?”On the asynchronous API (POST /v1/{phone_number_id}/messages), the API accepts your request (202 Accepted) and queues the message for that sender number. Delivery to Meta is paced at the number’s capacity (~80 or ~1,000 messages/second). If Meta throttles the number (130429), the platform retries automatically for up to 30 minutes.
Do rate limits apply per tenant, per API key, or per account?
Section titled “Do rate limits apply per tenant, per API key, or per account?”No per-tenant rate limit is published. Sending throughput is paced per sender number (phone_number_id). All requests sending from the same number share that number’s capacity, regardless of which API key is used.
When does the API return 429 and is there a Retry-After header?
Section titled “When does the API return 429 and is there a Retry-After header?”- Asynchronous API (
POST /v1/{phone_number_id}/messages): Returns429 capacity_exceededonly in the rare case when the platform’s global capacity is reached. This response has noRetry-Afterheader; retry after a short delay. - Sync API (
POST /api/v1/{phone_number_id}/messages): Returns429with aRetry-Afterheader (in seconds) when the sender number is above its throughput, orRetry-After: 2with error typeoverloadedwhen the gateway is at capacity.
How do I increase throughput?
Section titled “How do I increase throughput?”Contact support@cpaas.id to discuss your throughput needs. A number’s throughput tier (STANDARD ~80/second or HIGH ~1,000/second) depends on Meta’s WhatsApp quality tier and operator readiness.
Does the /health endpoint require authentication?
Section titled “Does the /health endpoint require authentication?”No. The /health endpoint does not require authentication and is not subject to sending rate limits. Use it for load balancer health checks or monitoring.