Uptime and outage planning for WhatsApp integrations

Plan for failures on every hop of a WhatsApp integration: receiver, provider and Meta. Retries, outboxes, recovery by history and honest customer messaging.

An integration is only as available as its weakest hop, and a WhatsApp integration has several: the customer's phone, Meta's platform, your provider, your receiver and your own queue. Uptime planning for it is less about promising a number and more about deciding in advance what happens on each hop when it fails. This article maps the failure modes, shows what the documented retry layers cover and what they do not, and proposes an outage routine. It deliberately quotes no uptime percentages: neither Meta nor this article publishes a figure you could rely on, and an invented one would be worse than none.

Which hops can fail?

Five hops can fail independently: your sending code, the provider API, Meta's platform, the webhook path back to you, and your processing queue. A single customer complaint can come from any of them, so the plan has to cover each one.

HopTypical failureWhat helps
Your senderBug, deploy, exhausted workersDurable outbox, idempotent retries
Provider APIErrors or timeouts on sendRetry with backoff and the same idempotency key
Meta platformMaintenance, throughput upgrade (131057), rate limits (130429)Classify as temporary and retry later
Webhook pathYour endpoint down or slowFast 2xx, queue, retries, history recovery
Your processingWorker backlog, poison messageDead-letter queue, queue-age alert

Meta documents error 131057 as the account being in maintenance mode, possibly during a throughput upgrade, with sending temporarily unavailable, and error 130429 as the app sending faster than the API allows. Both are temporary conditions. A client that marks such messages permanently failed turns a short event into lost messages.

How should the sending side survive failures?

Write the message to a durable outbox in the same transaction as the business event, then send from a worker with retries. The business operation succeeds or fails on your database alone, and WhatsApp delivery becomes an eventually consistent follow-up.

-- outbox written in the same transaction as the business change INSERT INTO outbox (id, tenant_id, channel_id, payload, idempotency_key, state, attempts, next_attempt_at) VALUES ($1, $2, $3, $4, $5, 'pending', 0, now()); -- worker: pick due rows, send with the stored idempotency key, -- on temporary error: attempts + 1, next_attempt_at = now() + backoff -- on permanent error: state = 'failed' and surface to the tenant -- on 202: state = 'accepted', wait for status webhooks

The idempotency key belongs in the outbox row, generated once. The Hub requires an Idempotency-Key on sends: the same key and body returns the original response instead of sending again, and the same key with a different body returns 409. A worker that crashes after the API call but before updating the row simply retries and receives the original answer.

Distinguish temporary from permanent errors explicitly, in code. Rate limits, maintenance and network errors are temporary. A closed 24-hour window (131047) needs a template instead of a retry. A paused template (132015) or a restricted account (368, 131031) needs a human. A mapping table in one file beats scattered if statements.

What do the webhook retry layers actually cover?

They cover short outages and error spikes, not long ones. Meta retries unacknowledged deliveries with decreasing frequency for up to 7 days, and the Hub retries failed deliveries for about four days, but a paused endpoint stops generating deliveries entirely.

On the Hub, a delivery is retried up to nine more times, and after 20 consecutive failed attempts the endpoint pauses automatically. Events that happen while an endpoint is paused create no delivery, so they do not appear in the list and cannot be replayed. For those, the recovery route is the channel message history: query inbound messages after the outage began and reconcile them against what you stored. Keep that script written and tested before you need it. The webhooks reference documents replay and the endpoint states.

  • Reply 2xx quickly and process from a queue, so a slow database does not look like a down endpoint.
  • Return an error status only when you could not store the event, since that triggers a useful retry.
  • After any outage, run the reconciliation script for the affected window instead of assuming retries caught everything.
  • Reactivate a paused endpoint only after the cause is fixed, then replay dead deliveries that matter.

What should degrade gracefully?

Decide in advance which features continue when WhatsApp or the provider is unavailable. A product that queues, informs and offers an alternative channel is a better experience than one that shows an error.

  • Time-critical messages such as one-time codes: offer another delivery channel after a short timeout, and do not keep retrying forever.
  • Customer-facing UI: show a message as queued or delayed rather than sent, using the accepted and delivered states.
  • Bulk sends: pause automatically on repeated temporary errors and resume when the circuit closes.
  • Inbound handling: keep accepting webhooks even if downstream processing is down, because acceptance is the cheap part.

Use a circuit breaker on the provider call so a failing dependency does not consume every worker with slow timeouts. Open the breaker after a run of failures, probe periodically and close it on success.

How do you communicate during an outage?

Tell affected tenants quickly and specifically: what is affected, what is queued, what will be retried automatically and what they should do. Vague notices cost more support time than the outage itself.

Have a status page or a status feed segmented by function (sending, receiving, templates) rather than a single green light. Record the start and end of each incident, the number of messages delayed and the number that needed manual recovery; this becomes the factual basis for any service commitments you later write, which should come from your own measured history and not from borrowed percentages. After each incident hold a blameless review and turn each finding into a test or an alert, as covered in the observability article of this series. The docs list the endpoints used for diagnostics.

For customers who depend on WhatsApp, also recommend practical resilience on their side: a way to reach critical contacts by another channel, and clear internal ownership of the number so a Meta-side problem can be escalated by the right person.

Frequently asked questions

How long does Meta retry a failed webhook delivery?

Meta retries with decreasing frequency for up to 7 days, and retries may produce duplicates, so deduplication is required.

What happens to events while a Hub webhook endpoint is paused?

They create no delivery and cannot be replayed from the delivery list. Recover them by querying the channel message history for the outage window and reconciling.

Should a temporary error like 131057 be treated as a failed message?

No. Meta describes it as maintenance mode, possibly during a throughput upgrade, with sending temporarily unavailable. Retry with a delay rather than marking the message permanently failed.

Fontes

Documentação oficial da Meta, conferida em 31 de outubro de 2026.