Skip to content

Set up your WhatsApp Business API for free. No credit card needed.Set up your WhatsApp API for free.Get started

Direct webhook (Meta override)

Normally Meta sends a number’s incoming messages and delivery statuses to Hello, and Hello shows them in the dashboard. Direct webhook (also called webhook override or direct mode) makes Meta send them for one phone number straight to your own server instead.

Use it when your system has to receive WhatsApp events itself, with nothing in between, for example a chatbot or an existing Cloud API webhook handler.

Direct webhook is available on plans that include it. When you pick a number on the dashboard’s Webhooks page, it tells you if your plan doesn’t.

  • Hello stops receiving that number’s events. Incoming messages, sent-message statuses (sent, delivered, read, failed) and pricing go only to your URL. In Hello, messages sent from the number stay sent, and its usage details and delivery analytics are incomplete. Your server is responsible for all of it.
  • Sending still works and still counts against your plan. WhatsApp still enforces the 24-hour window: a free-form reply outside it fails, and the failure (131047) reaches your server, not Hello.
  • Template and account events still come to Hello: template approvals, quality and account updates.
  • There is no fallback. If your server is down, Meta retries for a while, but it never sends the events to Hello instead.
  • Only this number changes. Your other numbers keep sending their events to Hello.

Removing the direct webhook sends events to Hello again immediately. Events that went to your URL in the meantime are not replayed into Hello.

Choose a URL with a secret path. Meta signs each delivery with Hello’s app secret, which isn’t shared with you, so you can’t verify the X-Hub-Signature-256 header. Authenticate deliveries with a long random token in the URL path instead:

https://example.com/hooks/whatsapp/9f2c4e1a7b3d5e8f

The URL must:

  • use https
  • be at most 200 characters
  • have a public host: no localhost, internal names, private IP addresses or user:password@

Don’t put the secret in a query string, which other systems often log.

Choose a verify token: 8 to 100 printable characters, without spaces. Your server checks it during the handshake below. Hello stores it encrypted and never returns it.

Make your server answer the handshake. While setting the webhook, Meta calls your URL once:

GET /hooks/whatsapp/9f2c4e1a7b3d5e8f?hub.mode=subscribe&hub.verify_token=<your verify token>&hub.challenge=1158201444

Your server must check that hub.verify_token is your token, then reply 200 with the hub.challenge value as the plain-text body. Hello never calls your URL itself. Your server has to be running and reachable before you set the webhook, or the setup fails.

// Express example: the handshake, then the events.
app.get('/hooks/whatsapp/9f2c4e1a7b3d5e8f', (req, res) => {
if (req.query['hub.mode'] === 'subscribe' &&
req.query['hub.verify_token'] === process.env.WHATSAPP_VERIFY_TOKEN) {
return res.status(200).send(req.query['hub.challenge']);
}
res.sendStatus(403);
});
app.post('/hooks/whatsapp/9f2c4e1a7b3d5e8f', express.json(), (req, res) => {
res.sendStatus(200); // answer quickly, then process the event
handleWhatsAppEvent(req.body); // WhatsApp Cloud API webhook payload
});

Deliveries are standard WhatsApp Cloud API webhook payloads (entry[].changes[].value.messages and .statuses).

  1. Open Webhooks and choose Add webhook. You can also use the webhook icon on a number in WhatsApp Accounts.
  2. Pick the number. Only active numbers without a webhook are offered.
  3. Enter your URL and verify token. Generate secret path adds a random code to the end of your URL, and Generate creates a verify token.
  4. Tick the box to confirm that you understand what stops working, then choose Turn on direct webhook.

Meta checks your URL straight away. If the check fails, nothing changes, and the error message from Meta says why, including the HTTP status your server returned.

The Webhooks page lists every number with a direct webhook, its URL and its status. Manage opens a number’s webhook to change the URL, re-apply it, refresh it from Meta or remove it. Refresh from Meta appears only once a webhook is set.

Hello’s record is the source of truth. Hello does not watch Meta in the background.

Status Meaning What to do
active Meta accepted the URL, or showed it at the last refresh. Nothing.
draft (Not applied on Meta) Saved in Hello, but Meta doesn’t have it, or has another URL. This happens when a re-apply after a reconnect failed, or a refresh found Meta without it. last_error says why. Re-apply it, set it again, or remove it.
error (Needs attention) Meta’s state is uncertain, or Hello’s access to the number is affected (for example, the number was disconnected or its token revoked). last_error says why. Fix the access, then re-apply.

When a number is reconnected, registered or becomes active again, Hello re-applies its webhook automatically. If that fails, the webhook becomes draft.

To compare with what Meta has right now, use Refresh from Meta in the dashboard, or GET … ?refresh=true below. A refresh records what it finds, but never fixes it for you.

The same operations are on the Integration API, authenticated with your API key (see Authentication). phone_number_id is the number’s WhatsApp ID, from GET /v1/phone_numbers. AI assistants can use them through the MCP server too.

Terminal window
curl "$HELLO_API_URL/v1/$PHONE_NUMBER_ID/webhook-override" \
-H "Authorization: Bearer $HELLO_API_KEY"
{
"enabled": true,
"url": "https://example.com/hooks/whatsapp/9f2c4e1a7b3d5e8f",
"status": "active",
"set_at": "2026-10-29T10:00:00Z",
"last_checked_at": "2026-10-29T10:00:00Z",
"plan_allows": true
}

plan_allows says whether your plan includes direct webhook. With nothing set, the response is {"enabled": false, "plan_allows": true}.

Add ?refresh=true to read Meta’s live setting first and record the result. The response then also has meta_enabled, meta_host (the host of Meta’s URL only, never its path) and in_sync.

Terminal window
curl -X PUT "$HELLO_API_URL/v1/$PHONE_NUMBER_ID/webhook-override" \
-H "Authorization: Bearer $HELLO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/hooks/whatsapp/9f2c4e1a7b3d5e8f",
"verify_token": "a-long-random-token",
"acknowledge_no_tracking": true
}'

acknowledge_no_tracking must be true: it confirms that you accept what stops working in Hello. Meta verifies the URL during the call. The response is the new state, with status active. Calling it again replaces the URL and token.

Applies the stored URL and token on Meta again, for a draft webhook. Nothing needs to be re-entered:

Terminal window
curl -X POST "$HELLO_API_URL/v1/$PHONE_NUMBER_ID/webhook-override/reapply" \
-H "Authorization: Bearer $HELLO_API_KEY"
Terminal window
curl -X DELETE "$HELLO_API_URL/v1/$PHONE_NUMBER_ID/webhook-override" \
-H "Authorization: Bearer $HELLO_API_KEY"

Returns 204. Meta sends the number’s events to Hello again immediately. Removing is never blocked by your plan.

Status code Cause
400 VALIDATION_ERROR The URL or token breaks the rules above, acknowledge_no_tracking is missing, the number isn’t active, or there is nothing stored to re-apply.
400 WEBHOOK_VERIFICATION_FAILED Meta couldn’t verify your URL. The message is Meta’s, with the HTTP status it got. Nothing changed.
403 PLAN_FEATURE_NOT_INCLUDED Your plan doesn’t include direct webhook.
404 ACCOUNT_NOT_FOUND No number with this phone_number_id in your organization.
409 WEBHOOK_OVERRIDE_BUSY Another change to this number’s webhook is in progress. Retry shortly.
502 META_ERROR Meta failed. Nothing changed (a failed re-apply leaves the webhook draft). Retry.

See Errors for the error format.