Webhooks
Two ways to receive events on your own URL: raw Meta event forwarding, and high-level automation events from the Marketplace connectors. Signature recipes, retry policy, and the replay workbench.
Last updated: September 30, 2026

Two webhook surfaces
The platform can push events to your systems in two different shapes — pick the one that matches what you're building:
| Meta event forwarding | Automation connector events | |
|---|---|---|
| Where to set up | Webhooks page (Developer section) | Marketplace → Outbound Webhook / Zapier / Make |
| What you get | The raw WhatsApp Cloud API payload, exactly as Meta sent it (messages, statuses, template updates) | Small, high-level JSON events (new contact, inbound message, order paid, …) |
| Best for | Your own backend that already speaks Meta's webhook format | Zapier / Make scenarios and lightweight automations |
| Signature header | X-DialogPlus-Signature-256 |
X-Webhook-Signature |
1. Meta event forwarding (Webhooks page)
Set a single HTTPS callback URL on the Webhooks page and we forward every Meta webhook event your WhatsApp Business Account is subscribed to (messages, message_template_status_update, …). The body is the unmodified Meta payload, so Meta's payload examples apply as-is.
Delivery headers
| Header | Meaning |
|---|---|
X-DialogPlus-Delivery |
Unique delivery id (UUID). Stays the same across retries — use it as your idempotency key. |
X-DialogPlus-Timestamp |
Unix seconds when we signed the request. Reject anything older than 5 minutes. |
X-DialogPlus-Signature-256 |
sha256=<hex> — see the recipe below. |
X-DialogPlus-Signature-Version |
Wire-format version, currently v1. |
Signature verification
The signature is HMAC-SHA256 over {timestamp}.{delivery_id}.{raw body} using your forwarding secret (shown on the Webhooks page; rotate it there anytime — old signatures stop validating instantly). Verify over the raw bytes you received, before parsing the JSON:
import hashlib, hmac, time
def verify(secret: str, headers: dict, raw_body: bytes) -> bool:
ts = headers["X-DialogPlus-Timestamp"]
delivery_id = headers["X-DialogPlus-Delivery"]
signature = headers["X-DialogPlus-Signature-256"]
# Replay window: reject stale deliveries (Stripe uses 5 min too).
if abs(time.time() - int(ts)) > 300:
return False
signed = f"{ts}.{delivery_id}.".encode() + raw_body
expected = "sha256=" + hmac.new(
secret.encode(), signed, hashlib.sha256,
).hexdigest()
return hmac.compare_digest(expected, signature)
Retry policy
- Your endpoint has 10 seconds to return a 2xx.
- On non-2xx or timeout we retry with waits of 1 m, 5 m, 15 m, 1 h, 6 h — up to 6 attempts total, then the delivery is marked failed.
- Every attempt reuses the same
X-DialogPlus-Deliveryid. - Redirects are not followed, and destinations are SSRF-checked at save time and at every send (private, loopback, and cloud-metadata addresses are refused).
Inspect, test, and replay
Everything is observable from the Webhooks page:
- Deliveries tab — every outbound attempt with status, HTTP code, duration, and the exact payload we sent (expand a row).
- Retry — re-send any failed delivery immediately, or use Retry due to drain everything whose backoff timer has elapsed.
- Events tab — the signed inbound events we received from Meta for your workspace, with raw payloads.
- Send test event — fires a canned
dialogplus_webhook_testpayload at your callback URL with real signatures, so you can develop your receiver before any WhatsApp traffic exists.
2. Automation connector events (Marketplace)
Install Outbound Webhook, Zapier, or Make from the Marketplace with a destination URL (for Zapier/Make: the Catch-Hook URL) and an optional signing secret. The platform then POSTs a compact envelope whenever one of these fires:
| Event | Fires when | Useful data fields |
|---|---|---|
contact.created |
A contact is created — manually, or by the first inbound message from a new number. | contact_id, phone, display_name, source |
message.inbound |
Every inbound WhatsApp message, after it lands in the inbox. | contact_id, phone, text, message_type, wa_message_id |
order.paid |
A journey payment settles as paid — exactly once per order, even if the PSP retries its webhook. | reference_id, amount_cents, currency, contact_phone |
conversation.resolved |
An inbox conversation is resolved (by an agent, an automation rule, or the scheduler). | conversation_id, resolved_by_user_id |
broadcast.completed |
A campaign finishes draining — fires once when it reaches sent or failed. | broadcast_id, name, status, total_recipients, sent, failed |
test.ping |
You press Test on the connector card. | message |
Envelope and signature
POST https://hooks.zapier.com/hooks/catch/...
Content-Type: application/json
X-Webhook-Signature: sha256=6c2d18ab9f0e...
{
"event": "order.paid",
"sent_at": "2026-07-17T09:14:03.512000+00:00",
"org_id": "c3a5c525-...",
"data": {
"reference_id": "pay_1f2e3d...",
"amount_cents": 149900,
"currency": "INR",
"contact_phone": "+9198......10"
}
}
When you configured a signing secret, X-Webhook-Signature is the HMAC-SHA256 of the raw request body:
expected = "sha256=" + hmac.new(
secret.encode(), raw_body, hashlib.sha256,
).hexdigest()
ok = hmac.compare_digest(expected, headers["X-Webhook-Signature"])
Delivery behavior
- 10-second timeout, up to 3 attempts with short pauses. A 4xx response (other than 429) is not retried — fix the receiver and use Test.
- Every delivery attempt is recorded in the connector's sync history on its Marketplace card.
- Deliveries are fire-and-forget from the platform's point of view: a slow or failing receiver never blocks messaging, contact creation, or payment settlement.
- Idempotency: dedupe on the natural keys in
data—wa_message_idfor messages,reference_idfor orders,broadcast_id/conversation_idplus the event name elsewhere.
Best practices (both surfaces)
- Return 2xx fast. Queue the work in your backend; don't process inside the request handler.
- Always verify the signature before any side effect — anyone can POST to your URL otherwise.
- Process idempotently. Retries and redeliveries are part of normal operation on every webhook platform.
- HTTPS only. Private and internal addresses are refused by the SSRF guard.
- Rotate secrets from the Webhooks page (forwarding secret) or by updating the connector's credentials (signing secret).
What's next
- API reference — pull data on demand instead of subscribing.
- Integrations — the Marketplace connector catalog (Zapier, Make, Meta CAPI, Google Sheets).
Official Meta documentation
Forwarded events carry Meta's own field shapes. When you need to check a field or error code, go straight to the source:
- WhatsApp Cloud API webhooks reference
- Webhook payload examples
- Webhook component fields — status, errors, button clicks, list replies.