Skip to main content
WG Messaging Guides

Errors and retries

Branch on error.code, not the human-readable error message. Retain request_id (also returned as X-Request-Id) when asking for support.

Choose the next action​

ResultAction
invalid_requestCorrect the request; do not loop unchanged invalid input.
invalid_credential / insufficient_scopeCheck environment, credential and scopes on the backend.
idempotency_conflictThe key was reused with a different request; reconcile the original operation.
idempotency_in_progressWait for Retry-After, then retry the same body and key.
payment_requiredResolve Meta billing and reverify readiness before another send.
policy_rejected / template_not_foundCheck template approval, language and sending eligibility.
429 / 503Honor Retry-After; use bounded exponential backoff with jitter and the same idempotency key.
HTTP timeout / lost responseAcceptance is uncertain; retry the unchanged request with the original key.

Do not interpret a workspace/resource 404 as proof that the resource exists elsewhere: inaccessible and nonexistent resources have the same response.

After acceptance​

After 202, inspect the saved message ID. A later failure belongs to that accepted message, not to the original HTTP request. outcome_unknown means dispatch might have occurred: do not automatically send a replacement. An expired message was not sent; do not keep treating it as retryable.

Webhook replay does not resend a WhatsApp message. It redelivers an event to your application, retaining the delivery ID for deduplication.

See Message status, Webhook health, and Billing readiness.