Errors
Errors come in one of two shapes.
WhatsApp Cloud API routes (send a message,
upload media and the message template
paths /v1/{waba_id}/message_templates) answer errors exactly like Meta’s Cloud API, so error
handling written for Meta works unchanged:
{ "error": { "message": "Free-form messages need an open 24-hour customer service window", "type": "OAuthException", "code": 131047, "error_data": { "messaging_product": "whatsapp", "details": "Free-form messages need an open 24-hour customer service window", "hello_code": "OUTSIDE_24H_WINDOW" }, "fbtrace_id": "3f9c2a1e-7b4d-4c8e-9a15-2d6f8e0b1c47" }}| Field | Description |
|---|---|
error.code |
When WhatsApp rejected the request, WhatsApp’s own error code. Otherwise Meta’s code for the same situation, listed in the tables below (for example 131047 outside the 24-hour window, 190 for a bad API key). |
error.error_subcode |
WhatsApp’s subcode when it sent one; 33 when the phone_number_id doesn’t exist. Omitted otherwise. |
error.error_data.hello_code |
Hello’s own code, from the tables below. Branch on this for Hello-specific cases such as plan limits. |
error.error_data.details |
WhatsApp’s details when WhatsApp rejected the request, otherwise the message. Any extra fields of the error, such as available_languages, are in error_data too. |
error.fbtrace_id |
WhatsApp’s trace ID when WhatsApp rejected the request, otherwise Hello’s request ID (also in the X-Request-ID response header). Quote it to support. |
Every other endpoint, including the older /v1/{waba_id}/templates path, returns a
human-readable message and a machine-readable code:
{ "message": "to is required", "code": "VALIDATION_ERROR"}Branch on the code (error.code / hello_code, or code), not on the message: message wording
can change.
Authentication
Section titled “Authentication”| Status | code |
Meta error.code |
Cause | Fix |
|---|---|---|---|---|
401 |
UNAUTHORIZED |
190 |
Missing, wrong, deleted or disabled API key | Send Authorization: Bearer <key> with a live key |
403 |
TEST_MODE_KEY_UNSUPPORTED |
10 |
Legacy test-mode key | Create a live key in Integrations |
The Meta code applies on the Cloud API routes and the message template paths, where the code is error.error_data.hello_code.
Sending messages
Section titled “Sending messages”POST /v1/{phone_number_id}/messages — see Send a message for
the full table.
Errors use Meta’s envelope; hello_code is error.error_data.hello_code.
| Status | hello_code |
error.code |
Cause | Fix |
|---|---|---|---|---|
400 |
VALIDATION_ERROR |
100 |
Invalid JSON, missing to/type, an unsupported type, the wrong shape for the type’s object, a group recipient, or to without its country code |
Fix the request per message |
400 |
TEMPLATE_LANGUAGE_REQUIRED |
100 |
Template name exists in several languages and none was given | Set template.language.code; available_languages lists the options |
403 |
OUTSIDE_24H_WINDOW |
131047 |
Non-template message outside the 24-hour window | Send a template |
403 |
TEMPLATE_NOT_APPROVED |
132001 |
The named template isn’t APPROVED |
Wait for approval, or use a different template |
403 |
PLAN_* |
10 |
Your plan doesn’t allow this send (below) | See the code |
404 |
ACCOUNT_NOT_FOUND |
100 (subcode 33) |
No number with this phone_number_id in your organization |
Check the Accounts page or GET /v1/phone_numbers |
404 |
TEMPLATE_NOT_FOUND |
132001 |
No template with this name on the number’s WABA | Create it or sync |
404 |
TEMPLATE_LANGUAGE_NOT_FOUND |
132001 |
The name exists but not in the requested language | Use one of available_languages |
409 |
ACCOUNT_NOT_REGISTERED |
133010 |
The number hasn’t completed phone registration | Finish setup in the dashboard |
422 |
SEND_FAILED |
WhatsApp’s own | (synchronous mode, or mark-as-read) WhatsApp rejected the request. message says why. |
Fix the request per message |
429 |
PLAN_DAILY_LIMIT_REACHED |
4 |
The plan’s daily unique-recipient cap is used up; limit, used, resets_at in error_data |
Wait until resets_at |
502 |
SEND_FAILED |
131000 |
(mark-as-read) WhatsApp couldn’t be reached | Retry |
Plan and entitlement errors
Section titled “Plan and entitlement errors”Returned with status 403 (Meta error.code 10) when your plan doesn’t allow a send.
error_data adds reason, plus details that depend on the code:
{ "error": { "message": "message quota exceeded for this subscription period", "type": "OAuthException", "code": 10, "error_data": { "messaging_product": "whatsapp", "details": "message quota exceeded for this subscription period", "hello_code": "PLAN_QUOTA_EXCEEDED", "reason": "quota", "meter": "messages_outbound", "period_end": "2026-09-30T23:59:59Z" }, "fbtrace_id": "3f9c2a1e-7b4d-4c8e-9a15-2d6f8e0b1c47" }}hello_code |
reason |
Extra fields | Meaning |
|---|---|---|---|
PLAN_NO_ACTIVE_SUBSCRIPTION |
no_subscription |
Your organization has no active plan | |
PLAN_EXPIRED |
expired |
period_end |
The plan period has ended |
PLAN_QUOTA_EXCEEDED |
quota |
meter, period_end |
You’ve used this period’s message allowance |
PLAN_MESSAGE_TYPE_NOT_ALLOWED |
message_type |
message_type |
This message type isn’t in your plan |
PLAN_CATEGORY_NOT_ALLOWED |
template_category |
category, allowed |
This template category isn’t in your plan |
PLAN_CATEGORY_UNRESOLVED |
template_category |
The template’s category couldn’t be found; check the template name and language | |
PLAN_COUNTRY_NOT_ALLOWED |
country |
country, allowed |
Sending to this country isn’t in your plan |
PLAN_COUNTRY_UNRESOLVED |
country |
The recipient’s country couldn’t be worked out from to; include the country code |
Message status
Section titled “Message status”| Status | code |
Cause |
|---|---|---|
400 |
INVALID_ID |
The message ID isn’t a valid UUID |
404 |
NOT_FOUND |
No such message in your organization |
500 |
FETCH_FAILED |
Temporary error. Retry. |
Templates
Section titled “Templates”Message templates
Section titled “Message templates”/v1/{waba_id}/message_templates (list, create and delete) errors use
Meta’s envelope. hello_code is error.error_data.hello_code. See the
list, create and
delete pages for the full tables.
| Status | hello_code |
error.code |
Cause |
|---|---|---|---|
400 |
VALIDATION_ERROR |
100 |
Invalid JSON, a bad filter or paging value, or name missing on a name delete |
400 |
HEADER_MEDIA_FETCH_FAILED |
100 |
The header sample URL on create couldn’t be fetched |
401 |
UNAUTHORIZED |
190 |
Missing, wrong or disabled API key |
404 |
NOT_FOUND |
100 (subcode 33) |
No such WABA or template in your organization |
409 |
ACCOUNT_NOT_REGISTERED |
133010 |
The WABA has no active, registered number |
422 |
META_REJECTED |
WhatsApp’s own | WhatsApp rejected the request. error_subcode, error_user_title and error_user_msg pass through when WhatsApp sends them. |
502 |
META_AUTH_FAILED |
131000 |
WhatsApp rejected Hello’s credentials for this WABA |
502 |
META_UNAVAILABLE |
2 |
WhatsApp’s API was unreachable or returned a server error |
503 |
HEADER_MEDIA_BUSY |
131000 |
Header media is busy. Retry. |
500 |
LIST_FAILED, CREATE_FAILED, DELETE_FAILED |
131000 |
Temporary server error. Retry. |
Other template paths
Section titled “Other template paths”/v1/{waba_id}/templates/sync, /v1/{waba_id}/templates/bulk, /v1/templates/{template_id}
(get and edit), and the older /v1/{waba_id}/templates and DELETE /v1/templates/{template_id}
paths answer with message and code. See the individual edit,
sync and get pages for the
full tables.
| Status | code |
Cause |
|---|---|---|
400 |
VALIDATION_ERROR |
Invalid JSON, or a bad filter/paging value |
401 |
UNAUTHORIZED |
Missing, wrong or disabled API key |
404 |
NOT_FOUND |
No such WABA or template in your organization |
409 |
ACCOUNT_NOT_REGISTERED |
The WABA has no active, registered number |
422 |
META_REJECTED |
WhatsApp rejected the request. meta_error carries Meta’s own error detail. |
502 |
META_AUTH_FAILED |
WhatsApp rejected Hello’s credentials for this WABA (sync) |
502 |
META_UNAVAILABLE |
WhatsApp’s API was unreachable or returned a server error (sync) |
500 |
Temporary server error. Retry. |
POST /v1/{phone_number_id}/media errors use Meta’s envelope.
| Status | hello_code |
error.code |
Cause |
|---|---|---|---|
400 |
VALIDATION_ERROR |
100 |
phone_number_id isn’t numeric, messaging_product isn’t whatsapp, or type is missing |
400 |
MISSING_FILE |
100 |
No file part, or the body isn’t multipart/form-data |
400 |
INVALID_MEDIA |
100 |
Unsupported type, too large, empty, or contents don’t match the type |
404 |
ACCOUNT_NOT_FOUND |
100 (subcode 33) |
No number with this phone_number_id in your organization |
409 |
ACCOUNT_NOT_REGISTERED |
133010 |
The number hasn’t completed phone registration |
413 |
PAYLOAD_TOO_LARGE |
100 |
The request body is larger than the server allows |
4xx |
UPLOAD_REJECTED |
WhatsApp’s own | WhatsApp rejected the file |
502 |
UPLOAD_REJECTED |
131000 |
WhatsApp rejected Hello’s credentials for this number; contact support |
502 |
META_UNAVAILABLE |
2 |
WhatsApp was unreachable. Retry. |
500 |
UPLOAD_FAILED |
131000 |
Upload failed. Retry. |
GET /v1/{media_id} and GET /v1/{media_id}/download (get media) use the
same envelope. An unknown, expired or other organization’s media id is 404 NOT_FOUND
(error.code 100, subcode 33), never 401: 401 means only a bad API key. WhatsApp
unreachable is 502 META_UNAVAILABLE.
Direct webhook
Section titled “Direct webhook”/v1/{phone_number_id}/webhook-override (get, set, re-apply and remove) answers with message
and code. See Direct webhook.
| Status | code |
Cause | Fix |
|---|---|---|---|
400 |
VALIDATION_ERROR |
The URL isn’t https, is longer than 200 characters or has a non-public host; the verify token isn’t 8-100 printable characters without spaces; acknowledge_no_tracking isn’t true; the number isn’t active; or there is nothing stored to re-apply |
Fix the request per message |
400 |
WEBHOOK_VERIFICATION_FAILED |
Meta couldn’t verify your URL. message is Meta’s, with the HTTP status it got. Nothing changed. |
Make your server answer the hub.challenge handshake, then retry |
403 |
PLAN_FEATURE_NOT_INCLUDED |
Your plan doesn’t include direct webhook (removing is never blocked) | Change plan |
404 |
ACCOUNT_NOT_FOUND |
No number with this phone_number_id in your organization |
Check GET /v1/phone_numbers |
409 |
WEBHOOK_OVERRIDE_BUSY |
Another change to this number’s webhook is in progress | Retry shortly |
502 |
META_ERROR |
Meta failed. Nothing changed, except that a failed re-apply leaves the webhook draft. |
Retry |
MCP server
Section titled “MCP server”MCP tool calls run as the matching /v1 request, so a tool
returns that route’s error unchanged, in that route’s shape. The MCP endpoint itself answers
401 UNAUTHORIZED when the API key is missing or wrong.
Retrying
Section titled “Retrying”5xxand network errors are safe to retry with backoff, except onPOST /v1/{phone_number_id}/messages: a retry can send the message twice unless you set anIdempotency-Keyheader — a retry with the same key returns the original message instead of sending again.409WEBHOOK_OVERRIDE_BUSYis safe to retry after a short wait.- Don’t retry
4xxerrors unchanged. Fix the request first.