WhatsApp API rate limits
The WhatsApp API counts requests and sends per key, each minute. Every answer tells you how much budget is left, and a 429 tells you how long to wait.
Limits#
Requests per key
Value: 120 a minute, shared with the same key's MCP calls
Sends per key
Value: 60 a minute, on endpoints marked Sends to WhatsApp
Recipients per broadcast call
Value: Up to 500
Page size on lists
Value: 20 by default and up to 100 on most lists. Each endpoint's parameters show its own
Wrong keys
Value: After 20 wrong keys from one address in 15 minutes, a wrong key from it gets 429
| Rule | Value |
|---|---|
| Requests per key | 120 a minute, shared with the same key's MCP calls |
| Sends per key | 60 a minute, on endpoints marked Sends to WhatsApp |
| Recipients per broadcast call | Up to 500 |
| Page size on lists | 20 by default and up to 100 on most lists. Each endpoint's parameters show its own |
| Wrong keys | After 20 wrong keys from one address in 15 minutes, a wrong key from it gets 429 |
Rate limit headers#
Answers carry the key's request budget, so you can slow down before you hit the limit.
X-RateLimit-Limit
What it holds: The key's request budget.
X-RateLimit-Remaining
What it holds: Requests left in the budget.
X-RateLimit-Reset
What it holds: Seconds until the budget refills.
Retry-After
What it holds: On a 429 only: seconds to wait before you retry.
| Header | What it holds |
|---|---|
| X-RateLimit-Limit | The key's request budget. |
| X-RateLimit-Remaining | Requests left in the budget. |
| X-RateLimit-Reset | Seconds until the budget refills. |
| Retry-After | On a 429 only: seconds to wait before you retry. |
What counts as a send#
These 8 endpoints count toward the limit of 60 sends a minute per key.
- POST /v1/templates/submitSubmit a template to Meta for approval
- POST /v1/messagesSend a template message
- POST /v1/broadcastsCreate a broadcast
- POST /v1/broadcasts/{broadcast_id}/resumeResume a broadcast
- POST /v1/broadcasts/{broadcast_id}/retryResend to failed recipients
- PATCH /v1/broadcasts/{broadcast_id}/retryMove a scheduled resend
- POST /v1/chats/{chat_id}/replyReply inside the 24-hour window
- POST /v1/chats/{chat_id}/reply-templateReply with a template
Handle a 429#
A 429 RATE_LIMITED answer carries Retry-After. Wait that long, then send the same request again.
// Waits out a 429 for as long as Retry-After says, then tries again.
async function sheetwa(path, init = {}) {
for (let attempt = 1; attempt <= 3; attempt++) {
const res = await fetch(`https://backend.sheetwa.com/v1${path}`, {
...init,
headers: { Authorization: `Bearer ${process.env.SHEETWA_API_KEY}`, ...init.headers },
});
if (res.status !== 429) return res;
const seconds = Number(res.headers.get("Retry-After")) || 60;
await new Promise((resolve) => setTimeout(resolve, seconds * 1000));
}
throw new Error("Still rate limited after 3 tries");
}
const res = await sheetwa("/contacts?page_size=100");
console.log(res.headers.get("X-RateLimit-Remaining"), await res.json());- Spread bulk work out over time instead of sending it all at once.
- To message many people, create one broadcast instead of many single sends.