Paused webhook endpoint: how to recover
After 20 straight failures a CRPRO Hub endpoint pauses. Learn how to reactivate it, replay dead deliveries and recover the gap's messages without losing any.
One day your receiver goes down for a few hours, comes back, and customer messages still do not show up. Almost always this is why: the CRPRO Hub endpoint paused during the outage and stays paused until someone reactivates it. This article explains when the pause happens, what it does to events, and the recovery sequence that leaves no hole in your data.
When and why the endpoint pauses
The endpoint pauses on its own after 20 consecutive failures. The counter adds up attempts, not deliveries: on a busy number with the receiver down, the first attempts of several messages fail in sequence and the limit arrives within minutes. A failure is any non-2xx response, a timeout, a connection error or a redirect.
The pause exists to protect both sides. It keeps the Hub from hammering a server that is already struggling, and keeps deliveries from piling up endlessly for a destination that does not answer. The price is that it needs a human action after the fix. Today reactivation is done through the API: the dashboard shows the status and the failure counter, but offers no button.
The clearest sign of a paused endpoint is the test event answering 404. Only an active endpoint accepts a test; paused or disabled returns 404. Another sign is the endpoint's own status, which now shows the pause, and the consecutive-failure counter stuck at the limit.
What happens to events during the pause
Events that occur during the pause generate no delivery, do not appear in the delivery list and cannot be replayed. This is the most important and least intuitive part: the pause does not hold events in a queue to deliver later. They are simply not sent to your endpoint.
Deliveries that were already in the queue when the pause hit are different. They resume when the endpoint is reactivated. And those that died, meaning they exhausted their attempts and ended with status dead, can be resent by replay. The set to recover therefore has two parts: what was in the queue and what happened during the gap without generating a delivery.
A concrete example: recovery in three steps
Suppose the receiver was down between 10 pm and 1 am because of an expired certificate. You renewed the certificate and tested the receiver locally. The sequence is the one in the snippet below, and the order matters.
# 1. reactivate the endpoint after fixing the receiver
curl -X PATCH https://crprohub.com/api/v1/webhooks/WEBHOOK_UUID \
-H "Authorization: Bearer hub_pk_EXEMPLO_NAO_REAL" \
-H "Content-Type: application/json" \
-d '{"status":"active"}'
# 2. replay a delivery that died (dead)
curl -X POST https://crprohub.com/api/v1/webhooks/WEBHOOK_UUID/replay/DELIVERY_UUID \
-H "Authorization: Bearer hub_pk_EXEMPLO_NAO_REAL"
# 3. recover inbound messages received during the pause
curl "https://crprohub.com/api/v1/channels/CHANNEL_UUID/messages?direction=inbound" \
-H "Authorization: Bearer hub_pk_EXEMPLO_NAO_REAL"- First reactivate the endpoint, with PATCH and status active. Without it nothing else flows.
- Then send the test event and confirm in deliveries that it ended as succeeded. Only then move on.
- List the deliveries and replay the ones that ended up dead, one by one, by delivery identifier.
- Finally, query the channel's inbound messages, filtering by direction=inbound, over the outage interval, and process the ones missing from your data.
In the third step, deduplicate against what you already have. The channel history includes messages that arrived normally before the pause and others you received by replay. The key to compare on is the message identifier, the wamid, which exists on both sides.
Mind one replay detail: the replayed event arrives with a new X-Hub-Delivery-Id, but with the same event id in the body. If your receiver deduplicates on the event id, as it should, the replay of a delivery you already processed will be discarded. That is the right behavior; replay the ones that ended up dead, or delete the deduplication record before reprocessing a successful one.
How to avoid reaching 20 failures
The best prevention is a receiver that almost never fails because it does little: validate, store, reply. When heavy work sits in a queue, an outage of the business database or of an external API does not take the endpoint down. The article about queues in this cluster details the pattern.
The second prevention is monitoring the consecutive-failure counter and alerting at a value well below 20, such as 5. With the pause at 20, the window is short, and an early alert lets you act before the pause happens. The third is an external alert on the receiver itself, such as a health check, so you learn of the outage before the Hub does.
- Reply 2xx for an event you decided to discard; errors only for failures that resolve themselves.
- Do not return 4xx for an unknown payload: it pushes the counter toward the pause for no reason.
- Monitor certificate and DNS: an expired certificate or broken DNS takes down every delivery at once.
- Alert on the failure counter, not only on the paused status.
It also helps to write the recovery as a runbook before you need it. A runbook with these four steps, the endpoint identifier and the channel identifier already filled in turns a stressful night into ten minutes of copy and paste. Include who is allowed to reactivate, where the API key lives and which interval to reconcile, so the person on call does not have to guess. After the first real incident, add the lines you wished you had.
Reactivating without fixing the cause
Reactivating an endpoint without fixing the receiver only restarts the count: within minutes it pauses again, and you will have wasted attempts. Before reactivating, confirm the cause in the delivery list: last_http_status and last_error_code tell you whether the problem was the signature, response time, DNS or a 5xx. On each delivery the Hub re-checks the URL, so a domain that began pointing to an internal IP also keeps the endpoint failing after reactivation.
The commands for tests, deliveries and replay, and the retry rules, are on the CRPRO Hub webhooks page. The first authenticated calls are in the quickstart.
Frequently asked questions
How many failures pause the endpoint?
20 consecutive failures. The counter adds up attempts, not deliveries, so on a busy number the pause can come within minutes.
Are the events from the pause delivered later?
No. Events during the pause generate no delivery and cannot be replayed. Recover the interval's inbound messages through the channel history.
How do I reactivate the endpoint?
With PATCH on /api/v1/webhooks/{id} and the body {"status":"active"}. The dashboard shows the status but currently has no reactivate button.
Can I replay any delivery?
Only finished ones: succeeded, dead or canceled. A delivery in pending, processing or retry answers 404 to replay, because it is already in the queue.
Fontes
Documentação oficial da Meta, conferida em 31 de outubro de 2026.