Skip to main content

Error Codes

The HTTP error envelope​

Every API error uses the same envelope and returns the same request trace ID in a response header:

HTTP/1.1 429 Too Many Requests
X-Request-Id: req_01923abc
Content-Type: application/json

{
"error": {
"code": "RATE_LIMITED",
"message": "rate limit exceeded",
"retryable": true,
"httpStatus": 429,
"requestId": "req_01923abc"
}
}

Write requestId into your own logs; when you need a human to investigate, supply it along with the request time and the endpoint path. details and upstream appear only on the relevant errors — for the complete structure see OpenAPI & Agent Access.

Error codes​

codehttpStatusretryableDescription
UNAUTHENTICATED401NoMissing or invalid Bearer token
FORBIDDEN403NoThe request was refused
TENANT_FORBIDDEN403NoInsufficient account, role or scope
VALIDATION_FAILED400 / 409NoInvalid parameters or a state conflict
NOT_FOUND404NoThe resource does not exist, or does not belong to the current account
IDEMPOTENCY_CONFLICT409NoThe same Idempotency-Key was used with different request content
INSUFFICIENT_FUNDS402NoThe credit account's available balance is too low; top up or adjust the credit line
BM_BUDGET_EXCEEDED402NoThe account balance is fine, but the Business Portfolio this message belongs to has exhausted its budget; raise that Portfolio's budget cap. details carries portfolioId / remainingMinor
CUSTOMER_BUDGET_EXCEEDED402NoThe account balance is fine, but the customer entity this message belongs to has exhausted its budget; raise that customer entity's budget cap
WHATSAPP_24H_WINDOW_EXPIRED409NoMore than 24 hours have passed since the customer last replied, so only template messages can be sent; details.customerAction gives the next step
RATE_LIMITED429YesBack off and retry
PRICE_IMPORT_INVALID400 / 409NoThe rate table CSV failed validation, or the current state does not permit this operation (for example publishing an already-published import). details.issues lists each problem with its line number; when high-severity warnings exist, details.warnings gives the list needing confirmation
PRICING_UNAVAILABLE409NoNo rate found for the market + category combination (or that currency has no published version for the day). It will not silently fall back to charging 0 — a missing price is a fault and someone needs to fill the rate table in
ENGAGEMENT_COOLDOWN429NoThis recipient recently tripped Meta's per-person engagement ceiling (131049) from this number, and the platform refuses further templates locally during a 24h cooldown — retrying within those 24h extends Meta's block (and not only for marketing). Wait or switch recipients; do not treat this as a back-off-and-retry case
MARKETING_OPT_OUT403NoThis recipient has turned off marketing messages from this business inside WhatsApp (the stop from the user_preferences webhook). The opt-out is recorded against both the phone number and the BSUID Meta reports, and a send matching either to or toUserId is blocked. There is no expiry — only the user turning it back on lifts it, so remove the number from your marketing lists. Forcing it through means Meta accepts the message and then rules 131050 at delivery, burning a reservation and leaving a failed mark against the number's quality rating
UPSTREAM_META_ERROR502Depends on the responseMeta returned an error. message is Meta's own wording, passed through unchanged; upstream holds the entire native envelope: code (Meta's numeric code — the official advice is to drive error handling from it), details (error_data.details, the other officially recommended basis), userTitle / userMsg (Meta often writes "how to fix it" only here), type, traceId (fbtrace_id, the only credential you can attach when opening a Direct Support ticket) and subcode (officially no longer returned as of v16.0+ — do not write logic against it)
INTERNAL500UsuallyRecord the request details, then retry or alert

BM_BUDGET_EXCEEDED is no longer returned for new requests: budgets are now set per customer entity, and an exhausted budget returns CUSTOMER_BUDGET_EXCEEDED. The old code stays listed because historical message records can still carry it; handle the two the same way.

Message failure codes (error.code from GET /v1/messages/{id})​

These are a separate system from the HTTP error codes above: the codes here describe why a message that was already accepted ultimately failed to arrive. They are returned through the message detail endpoint and the status webhooks, not as the error.code of an HTTP response.

When the failure comes from Meta, error.code is the number in the "Meta code" column below (so it maps straight onto Meta's official error code table), error.message is Meta's own wording, and error.meta is the entire native envelope (including details and fbtrace_id). For locally determined message failures, such as insufficient account balance, an exhausted customer budget, and exhausted retries, error.code is the platform classification in the left-hand column. ENGAGEMENT_COOLDOWN is different: the request is rejected with HTTP 429 before a message record is created. The "Description" column is our categorisation, not Meta's wording.

retryable / customerAction / stage are the platform's judgement, not fields Meta supplies: retrying a code marked retryable: false gets you an identical result, and customerAction says who has to fix it (fix_template_params is something the caller can correct in five seconds; contact_platform_admin is on us).

Platform classificationMeta codeStageRetryablecustomerActionDescription
BM_BUDGET_EXCEEDED—SubmissionNoraise_bm_budgetThis Business Portfolio has exhausted its budget; raise its budget cap and retry.
BSUID_NOT_SUPPORTED_FOR_MESSAGE131062SubmissionNocheck_recipientThis message cannot be delivered by BSUID: Max Price templates and one-tap/zero-tap/copy-code authentication templates require the recipient phone number. Pass the phone number in to instead.
CUSTOMER_BUDGET_EXCEEDED—SubmissionNoraise_customer_budgetThis customer entity has exhausted its budget; raise its budget cap and retry.
CREDIT_LINE_NOT_READY131042DeliveryNoauthorize_credit_lineThis WABA's payment method or BlueMedia credit line is unavailable. If the credit line is already attached, check whether the allocation shared to that Business Portfolio is 0 — the allocation must be set under "Billing & payments → Credit lines" in Meta Business Suite (the API cannot set it).
DISPLAY_NAME_NOT_APPROVED131037, 2388103SubmissionNoapprove_display_nameThis 555 test number's display name has not passed review; change it in the Meta console and wait for approval.
FLOW_BLOCKED132068SubmissionNofix_flowThis Flow is blocked and must be corrected first.
FLOW_THROTTLED132069SubmissionNofix_flowThis Flow is throttled (10 messages using it have already gone out in the last hour); the Flow must be corrected first.
INSUFFICIENT_FUNDS—SubmissionNocontact_platform_adminThe local credit account balance is too low; top up or adjust the credit line first.
INTERNAL—SubmissionYes (platform retries automatically)contact_platform_adminAn internal platform error, currently being retried automatically; if it keeps failing, contact BlueMedia support with the message ID.
MARKETING_DISABLED_ON_CLOUD_API131063SubmissionNouse_marketing_messages_apiThis WABA has marketing messages disabled on the Cloud API (disable_marketing_messages_on_cloud_api=true). BlueMedia routes marketing templates through the Marketing Messages API automatically; if this error still occurs, check the WABA's Meta configuration and share the message ID with support. You do not need to change the BlueMedia request endpoint.
MARKETING_EXPERIMENT_EXCLUDED130472DeliveryNononeThe message was not sent because of a marketing message experiment grouping (Meta-side control group behaviour); this is not a configuration problem.
MARKETING_OPT_OUT131050DeliveryNostop_marketing_to_recipientThe recipient has turned off marketing messages from this business inside WhatsApp. Do not resend (it will not arrive either); remove the number from your marketing lists. If they turn it back on, Meta notifies you through the user_preferences webhook.
MAX_PRICE_REQUIRES_MM_API131061SubmissionNouse_marketing_messages_apiThis template has a Max Price and must be sent through the Marketing Messages API, not the Cloud API. BlueMedia routes marketing templates automatically; if this error still occurs, share the message ID with support.
MAX_PRICE_UNSUPPORTED_COUNTRY131065SubmissionNocheck_recipientMax Price delivery is not supported in this country. Use a template without a bid (rate-card billing), or choose a recipient in a supported country.
MEDIA_DOWNLOAD_FAILED131052DeliveryNocheck_mediaThe media file the user sent could not be downloaded; see error.meta.details for the reason, and consider asking the user to send the file another way.
MEDIA_UPLOAD_FAILED131053SubmissionNocheck_mediaThe media file in the message could not be uploaded (commonly an unsupported format); see error.meta.details for the reason.
MESSAGE_TYPE_UNSUPPORTED131051SubmissionNofix_request_paramsUnsupported message type; use a supported one.
MESSAGE_UNDELIVERABLE131026DeliveryNocheck_recipientThe message cannot be delivered: the recipient number may not be a WhatsApp user, or may not have accepted the latest terms of service.
META_ENGAGEMENT_LIMIT131049DeliveryNowait_24hMeta did not deliver the message in order to protect ecosystem engagement quality; wait at least 24 hours before trying the same user again.
META_PERMISSION_DENIED10, 200SubmissionNofix_app_credentialsMeta denied permission for this request; check the App permissions and the token's authorization scope.
META_RATE_LIMIT4, 80007SubmissionYes (platform retries automatically)retry_automaticallyMeta API rate limit; the platform backs off and retries automatically.
META_SERVICE_UNAVAILABLE131016, 133004SubmissionYes (platform retries automatically)retry_automaticallyMeta's service is temporarily unavailable; the platform backs off and retries automatically.
META_THROUGHPUT_LIMIT130429SubmissionYes (platform retries automatically)retry_automaticallyThe Cloud API throughput ceiling has been reached; the platform backs off and retries automatically.
META_TOKEN_INVALID190SubmissionNofix_app_credentialsThe Meta access token is invalid or expired; re-authorize.
PAIR_RATE_LIMIT131056SubmissionYes (platform retries automatically)retry_automaticallyToo many messages in a short period from one sending number to one recipient; the platform backs off and retries automatically.
PAYMENTS_TOS_PENDING134011SubmissionNocontact_platform_adminThis WABA has not accepted the WhatsApp Payments terms of service; accept them via the link in the error message before sending.
PHONE_NOT_REGISTERED131045, 133010SubmissionNoregister_phone_numberSomething is wrong with the sending number's registration; complete its registration on the WhatsApp Business Platform first.
PHONE_NOT_VERIFIED133006SubmissionNoregister_phone_numberThis number must be verified before it can be registered and used.
PHONE_SEND_RESTRICTED131048SubmissionYes (platform retries automatically)retry_automaticallyThis number's send volume is restricted (earlier messages were blocked or marked as spam in large numbers). The platform backs off and retries; if it keeps failing, check the number's quality rating in WhatsApp Manager.
RECIPIENT_BLOCKED_BY_BUSINESS130403DeliveryNounblock_recipientThe business has blocked this user on WhatsApp; unblock them before messaging again.
RECIPIENT_IS_SENDER131021SubmissionNofix_request_paramsThe recipient number is the same as the sending number; send to a different number.
REQUEST_PARAM_INVALID131009, 135000SubmissionNofix_request_paramsOne or more parameters in the request have an invalid value; check the permitted ranges against the endpoint documentation.
REQUEST_PARAM_MISSING131008SubmissionNofix_request_paramsThe request is missing a required parameter; add it per the endpoint documentation.
RETRIES_EXHAUSTED—SubmissionNocontact_platform_adminStill unsuccessful after repeated retries; check the last failure reason.
TEMPLATE_CLASSIFICATION_LIMIT131064SubmissionNocontact_platform_adminThis account has hit a sending cap due to template classification violations (both template and direct messages are restricted). Check that your template categories are correct; the restriction lifts automatically once the enforcement period ends.
TEMPLATE_DISABLED132016SubmissionNofix_templateThis template has been permanently disabled after repeated pauses; create a new template with different content.
TEMPLATE_NOT_FOUND132001SubmissionNosync_templateThe template does not exist or is out of sync with Meta; sync templates first and confirm the name and language.
TEMPLATE_PARAM_FORMAT_INVALID132012SubmissionNofix_template_paramsA template parameter's format does not match the template definition (for example a malformed structured parameter such as a date or currency).
TEMPLATE_PARAM_MISMATCH132000SubmissionNofix_template_paramsThe number of template parameters does not match the template definition; send components matching the declared placeholders in count and order.
TEMPLATE_PAUSED132015SubmissionNofix_templateThis template is paused because its quality rating is too low; change its content and resubmit for review.
TEMPLATE_POLICY_VIOLATION132007SubmissionNofix_templateThe template content violates WhatsApp policy; change it and resubmit for review.
TEMPLATE_TEXT_TOO_LONG132005SubmissionNofix_templateThe template translation is too long; shorten the template content in WhatsApp Manager.
UPSTREAM_META_ERROR—SubmissionYes (platform retries automatically)retry_automaticallyUpstream is temporarily unavailable; the platform retries automatically.
WABA_MAINTENANCE_MODE131057SubmissionYes (platform retries automatically)retry_automaticallyThis WABA is in maintenance mode (for example a throughput upgrade); the platform backs off and retries automatically.
WABA_RESTRICTED131031SubmissionNocontact_platform_adminThe WABA is restricted for policy violations or unverifiable data; BlueMedia support needs to handle it in the Meta console.
WHATSAPP_24H_WINDOW_EXPIRED131047SubmissionNouse_template_or_wait_for_replyMore than 24 hours have passed since the customer last replied; send an approved template message, or wait for the customer to write first.

What the 24-hour guidance for 131049 means​

The 24 hours is the minimum wait after a 131049 failure before retrying. It is not a promise that a marketing message will be deliverable once 24 hours have passed since this business last messaged the recipient.

Meta applies an adaptive per-user marketing limit based on factors including the recipient's recent marketing-message read rate, overall inbox activity, and marketing messages received from any business during a period determined by Meta. Therefore, a recipient can still receive 131049 even when this business's previous successful delivery was several days ago. Meta does not expose the recipient's current cap or its exact reset time.

Meta does explicitly state that every delivered marketing template outside an open customer-service window counts toward the limit, while marketing messages sent after the user replies and within that 24-hour window do not count. What Meta does not publish is a fixed number of messages, a fixed calculation period, a remaining-quota query, or an exact reset time. The threshold varies by user and changes with engagement, so it cannot be predicted from this business's send history alone.

When the failure record has stage: delivery, a Meta wamid, and error.code: 131049, the platform successfully submitted the message and Meta rejected it during delivery under this recipient-level policy. Do not retry automatically. Wait at least 24 hours from the failed attempt; the adaptive limit may remain in effect for longer.