Debugging a WhatsApp webhook that never arrives
A route to find why a webhook does not arrive: endpoint state, test event, delivery list, channel diagnostics and the signature at your receiver.
A webhook that does not arrive is the most common support case in WhatsApp integrations, and the cause is almost always one of a few. What gets in the way is looking in the wrong place: checking Meta when the problem is your signature, or checking your code when the endpoint is paused. This article gives an investigation order that starts with what is cheapest to verify and ends with what requires access to Meta's dashboard.
Which of the four layers holds the problem
The cause is always in one of four layers: the registered URL, the endpoint's state and configuration, your receiver, or the number's connection to Meta. The investigation order follows the same sequence, because the first three can be checked in seconds through the CRPRO Hub API and the last one requires looking at the channel.
A useful split is to ask whether the test event arrives. The Hub sends a synthetic event, webhook.test, through the same path as any delivery. If the test does not arrive, the problem is between the Hub and your receiver. If the test arrives and real messages do not, the endpoint is fine and the cause is earlier: the event subscription, the channel filter or the connection to Meta.
The route in four calls
Four queries solve most cases: the endpoint, the test, the deliveries and the channel diagnostics. The first three are in the snippet below, and the fourth is the channel diagnostics route.
# 1. endpoint state: status, events, payload_mode, channels
curl https://crprohub.com/api/v1/webhooks/WEBHOOK_UUID \
-H "Authorization: Bearer hub_pk_EXEMPLO_NAO_REAL"
# 2. test event (webhook.test): goes out immediately
curl -X POST https://crprohub.com/api/v1/webhooks/WEBHOOK_UUID/test \
-H "Authorization: Bearer hub_pk_EXEMPLO_NAO_REAL"
# 3. recent deliveries: status, attempts, last_http_status, last_error_code
curl https://crprohub.com/api/v1/webhooks/WEBHOOK_UUID/deliveries \
-H "Authorization: Bearer hub_pk_EXEMPLO_NAO_REAL"- The endpoint: status must be active; events must include the event you expect (an empty list receives all); payload_mode and channels must match what you want.
- The test: if it does not arrive, look at the URL, DNS and your receiver. There is a limit of 10 tests per hour per endpoint, and a paused endpoint answers 404.
- The deliveries: the 50 most recent, with status, attempt count, last HTTP status and last error code. This is where the reason shows up.
- The channel: the diagnostics show, among other things, whether the Hub app is subscribed to the Meta account.
Read the delivery list paying attention to last_http_status. A 401 indicates your receiver is rejecting the signature. A missing value with a timeout error indicates it takes more than 10 seconds. Deliveries stuck in pending with zero attempts indicate the organization has no active subscription. Each symptom points somewhere different.
A concrete example: statuses arrive, messages do not
The most frequent symptom is receiving send statuses and never the customers' messages. The classic cause is that the endpoint's event list does not include message.received. When you query the endpoint, you see events has only message.status, and the fix is to add the event.
There are two other causes with the same symptom. If the endpoint is in meta_raw mode, it gets Meta's raw payload in the meta.raw event and does not get message.received, which exists only in normalized mode. And if the endpoint was created in the dashboard with a channel restriction, a second number does not join on its own: check all_channels and channel_ids. In all three cases, the diagnosis took two queries and no code.
The inverse symptom, receiving everything duplicated, has another origin: delivery is at least once, and a retry repeats the same event. The fix is to deduplicate on the event identifier, not to touch configuration.
When the problem is in your receiver
If the deliveries show 401, the problem is almost always signature verification. The HMAC is computed over the exact bytes of the body, and a framework that parses JSON before you read the raw body breaks verification on every delivery. Other causes: an old secret after a rotation, computing the wrong format (check the signature version header) and a header read with capital letters where the framework delivers lowercase.
If the deliveries show timeout, the receiver is slow. The fix is to reply 2xx first and process later, in a queue. If they show 5xx, the error is in your code, and your own log is the only place to see the response body: the Hub's delivery list shows the HTTP status, not the body.
A particular case is n8n: the test URL registered in place of the production one, Raw Body turned off, or environment variable access blocked in the code node. Check each before suspecting anything deeper.
When nothing leaves Meta
If the test arrives and messages do not, the webhook is fine and the problem is upstream of the Hub. The known causes are the app not being subscribed to the Meta account (the channel diagnostics show this), the channel not being active, a disconnection through coexistence with an inactive device, and deliveries stuck for lack of an active Hub subscription.
On Meta's own side, the documentation suggests confirming the endpoint accepts requests, sending a test payload from the app dashboard and making sure the app is in Live mode, because some webhooks are not sent in development mode. To know whether Meta delivered something to the Hub, query the channel history with direction=inbound: it shows what arrived, whether or not the webhook went out.
Quick symptom table
The table summarizes the most common symptoms and where to look first. It does not replace the route, but works as a shortcut once you have done the route once.
| Symptom | Likely cause | Where to look |
|---|---|---|
| Test answers 404 | Endpoint paused or disabled | endpoint status |
| Statuses arrive, messages do not | message.received missing from events, or meta_raw mode | events and payload_mode |
| last_http_status 401 | Signature failing at the receiver | deliveries and version header |
| Timeout with no HTTP status | Receiver above 10 seconds | last_error_code |
| Stuck in pending | Organization without an active subscription | attempts equal to 0 |
The contract reference is CRPRO Hub webhooks, and the first authenticated calls are in the quickstart.
Frequently asked questions
What is the first step when debugging a webhook that does not arrive?
Query the endpoint: active status, subscribed events, payload mode and channels. Then send the test event and read the delivery list.
The test arrives but real messages do not. What does that mean?
That the path between the Hub and your receiver works. The cause is earlier: an unsubscribed event, the channel filter, meta_raw mode or the number's connection to Meta.
Why does the endpoint answer 404 to the test?
Because only an active endpoint accepts a test. Paused or disabled answers 404. Reactivate it and send again.
How do I know whether Meta sent the message to the Hub?
Query the channel history with direction=inbound. It shows received messages whether or not the webhook went out.
Fontes
Documentação oficial da Meta, conferida em 31 de outubro de 2026.