Docs
Errors and limits
Every error has the same shape, a stable code to branch on, and a message you can show to people.
json
{
"error": {
"code": "DAILY_CAP_REACHED",
"message": "This number has sent its 50 messages for today. It can send again after 00:00 UTC.",
"details": { "cap": 50, "sent_today": 50, "resets_at": "2026-11-10T00:00:00.000Z" }
}
}Branch on code, not on message: messages may be reworded, codes won't change.
Error codes
| Code | HTTP | Meaning |
|---|---|---|
| VALIDATION_ERROR | 400 | A field is missing or invalid. details.issues lists each problem. |
| INVALID_ADDRESS | 400 | Not a phone number with country code or a WhatsApp username. |
| INVALID_CURSOR | 400 | The cursor is not one this API returned. |
| UNAUTHENTICATED | 401 | No API key or token was sent. |
| INVALID_TOKEN | 401 | The key or token is wrong, revoked or expired. |
| PLAN_LIMIT | 402 | Your plan's limit for this resource is reached. details has the limit and current usage. |
| PLAN_INACTIVE | 402 | The workspace has no active plan, or billing is past due. |
| WORKSPACE_SUSPENDED | 403 | The workspace is suspended. |
| NOT_FOUND | 404 | The resource doesn't exist in this workspace. |
| NO_CONNECTED_NUMBERS | 409 | No WhatsApp number is connected (connect one in the app by scanning a QR code). |
| NO_STEPS | 409 | The campaign has no message steps yet. |
| CAMPAIGN_NOT_EDITABLE | 409 | Steps can only be replaced while a campaign is a draft, or paused with no leads mid-sequence. |
| NUMBER_NOT_CONNECTED | 409 | The number for this conversation is disconnected. |
| DAILY_CAP_REACHED | 409 | This number has sent its 50 messages for today (UTC). details.resets_at says when it resets. |
| IDEMPOTENCY_KEY_REUSED | 409 | This Idempotency-Key was already used with a different request body. |
| REQUEST_IN_PROGRESS | 409 | A request with this Idempotency-Key is still running. |
| CONTACT_NOT_ON_WHATSAPP | 422 | The phone number or username isn't on WhatsApp. |
| RATE_LIMITED | 429 | Too many requests. Wait for the Retry-After seconds. |
| INTERNAL_ERROR | 500 | Something failed on our side. |
| SEND_FAILED | 502 | WhatsApp didn't accept the message. Try again. |
Limits
- 120 requests per minute per API key or OAuth token (
429 RATE_LIMITED, withRetry-After). - 50 messages per number per day, counted from 00:00 UTC; less while a number warms up.
- Your plan's monthly messages and new contacts (
402 PLAN_LIMIT). SeeGET /v1/me. - 100 contacts per batch, 100 leads per request, 20 steps per campaign, 100 items per page.
- Up to 20 active API keys and 10 webhook endpoints per workspace.
When to retry
- 429: wait
Retry-Afterseconds. - 500, 502: retry with backoff, using the same
Idempotency-Keyso nothing is done twice. - 400, 402, 404, 409, 422: don't retry as is. Fix the request, or wait for the condition (for example the daily cap resetting).