WhatsApp Webhook Override

How Dualhook uses WhatsApp Webhook Override to route supported customer-path webhooks directly from Meta to your server.

Looking for the high-level overview first? Start with WhatsApp Webhook and then return here for the implementation details.

What Webhook Override Is

Webhook Override is Meta's alternate-callback routing for WhatsApp webhook fields. Instead of sending supported webhook fields to the default callback URL on the Meta app, Meta can send them directly to an alternate callback URL configured for a WhatsApp Business Account (WABA) or for a specific business phone number.

Dualhook uses this so customer message-path traffic goes from Meta to your endpoint directly. Dualhook is not a message proxy in that flow.

In a healthy Dualhook connection with override active:

  • Meta sends supported customer-path fields to your configured endpoint.
  • Dualhook does not receive, inspect, store, forward, or replay those payloads.
  • Dualhook still receives non-overridable management fields on its app-level callback so it can maintain dashboard state, account alerts, and operational metadata.

This is the core privacy boundary: message content, media metadata, chat history, app echoes, and contact-sync payloads do not pass through Dualhook when override is active.

Routing Priority

For a supported webhook field, Meta resolves the destination in this order:

  1. Phone-number-level alternate callback, if configured.
  2. WABA-level alternate callback, if configured.
  3. The default app callback URL, if no alternate callback exists.

Dualhook configures WABA-level routing. Meta supports a phone-number-level override (webhook_configuration on POST /<PHONE_NUMBER_ID>) with higher priority, but Dualhook does not create or manage that override, and the Runtime API rejects requests that try to set it.

For webhook fields that do not support override, Meta always sends the webhook to the default app callback URL.

Fields That Can Be Overridden

Meta's override support applies only to specific webhook field types. An override only redirects fields the Meta app is subscribed to, so the second column shows what a Dualhook connection actually delivers:

FieldPath in Dualhook
messagesYour endpoint, direct from Meta
smb_message_echoesYour endpoint, direct from Meta
smb_app_state_syncYour endpoint, direct from Meta
historyYour endpoint, direct from Meta
message_echoesNot subscribed by Dualhook
callsNot subscribed by Dualhook (Dualhook does not offer Calling)
consumer_profileNot subscribed by Dualhook
messaging_handoversNot subscribed by Dualhook
standbyNot subscribed by Dualhook
group_lifecycle_updateNot subscribed by Dualhook
group_participants_updateNot subscribed by Dualhook
group_settings_updateNot subscribed by Dualhook
group_status_updateNot subscribed by Dualhook
account_settings_updateNot subscribed by Dualhook

Template fields (message_template_status_update, message_template_quality_update, message_template_components_update, template_category_update) and account-level fields (account_update, account_review_update, account_alerts) never support override. Meta always sends them to the app's default callback URL.

The important operational point is that supported fields are not forwarded by Dualhook. Meta chooses the callback target and sends the webhook there directly. Fields Dualhook does not subscribe to are not delivered by a Dualhook connection at all; to receive them, subscribe your own Meta app to the WABA.

Apply field-specific validation only after inspecting entry[].changes[].field. For example, message-path payloads normally include value.metadata.phone_number_id, while WABA-level management events such as message_template_status_update do not. If your endpoint does not handle a recognized field, log it and return 200 rather than rejecting it for missing message-specific metadata and causing repeated delivery attempts.

What Stays on Dualhook

Fields that do not support override stay on the app-level callback. Dualhook handles these as operational metadata, not message content.

Examples include:

Dualhook forwards management notifications to your configured endpoint in Meta's envelope shape, one change per request with Meta's change object unmodified, and logs each of those operational events, with its body and delivery result, on the connection's Logs page. It does not store customer message bodies or media.

What Dualhook Configures

During onboarding, Dualhook collects your webhook endpoint URL and verify token before the Meta Embedded Signup popup opens. After signup completes, Dualhook subscribes the app with that WABA-level override. Meta verifies the endpoint before accepting the configuration.

The verify token is used by Meta's GET challenge when it verifies your endpoint. Dualhook stores it only for configuration and retry purposes. Meta accepts alternate callback URLs of up to 200 characters, so Dualhook rejects a longer webhook URL when you enter or save it.

Every Dualhook connection under the same WABA must therefore use the same webhook URL and verify token. Changing that configuration updates the WABA and its sibling connections together.

Coexistence Syncs

For Coexistence connections, Dualhook triggers Meta's one-time history and smb_app_state_sync sync requests after override is accepted.

Those trigger calls are not the payload delivery path. If the business approved history or contact sharing, Meta sends the resulting history and smb_app_state_sync webhooks directly to your endpoint through the active override.

A successful trigger only means Meta accepted the request. It does not prove that the business shared history, that Meta generated every chunk, or that your endpoint received and parsed every webhook.

Debugging Routing

The connection's Health page in Dualhook checks the routing signals Meta exposes:

  • WABA-level webhook override from subscribed apps,
  • app-level callback context.

Dualhook reports WABA routing as the connection's routing mode.

If override is active, supported fields should be delivered to your endpoint and should not appear in Dualhook's management-event logs.

If override is not active yet, supported fields can fall back to Dualhook's app-level callback. Dualhook's app callback defensively acknowledges those fallback payloads without processing or storing them. That state usually means setup is incomplete, the endpoint failed verification, or billing paused the connection.

One failure looks healthy in every routing field: when the WABA moves to a different Meta business portfolio after onboarding, Meta stops delivering message webhooks to the app but keeps listing the override and the subscription. The only signal is the notice "Your app is not subscribed to the message webhook" in the phone number's health status. The Health page reads that notice and compares the WABA's current owner portfolio with the one recorded at onboarding; when either flags, the Webhook routing row explains it and the fix is to disconnect the connection and then run Embedded Signup again from your own portfolio, not to re-save the webhook URL.

For the event categories Dualhook does handle, see Webhook Events & Notifications.

Related

Browse more docsStart Free Trial