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
| Result | Action |
|---|---|
invalid_request | Correct the request; do not loop unchanged invalid input. |
invalid_credential / insufficient_scope | Check environment, credential and scopes on the backend. |
idempotency_conflict | The key was reused with a different request; reconcile the original operation. |
idempotency_in_progress | Wait for Retry-After, then retry the same body and key. |
payment_required | Resolve Meta billing and reverify readiness before another send. |
policy_rejected / template_not_found | Check template approval, language and sending eligibility. |
429 / 503 | Honor Retry-After; use bounded exponential backoff with jitter and the same idempotency key. |
| HTTP timeout / lost response | Acceptance 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.