Integrations · WhatsApp

WhatsApp Business webhooks

WhatsApp Business (Cloud API) webhooks tell your product about incoming messages and delivery statuses. Here is how they work, what makes them easy to get wrong, and how Relaya can receive and watch them for your team.

Built-in provider: coming soonAvailable now as a custom integration

How WhatsApp webhooks work

You subscribe your Meta app to the whatsapp_business_account object and give Meta a callback URL. Before sending anything, Meta checks that you own the URL with a verification handshake, then posts events as JSON:

  1. 01
    Verify: Meta sends GET ?hub.mode=subscribe&hub.verify_token=…&hub.challenge=…. Your endpoint compares the verify token with the one you chose and answers with the hub.challenge value.
  2. 02
    Receive: each event is a POST with an X-Hub-Signature-256: sha256=… header, the hex HMAC-SHA256 of the raw body keyed with your app secret.
  3. 03
    Handle: messages arrive under entry[].changes[].value.messages and delivery updates (sent, delivered, read, failed) under value.statuses. Answer 200 quickly; Meta retries failed deliveries.
A WhatsApp status update (shortened)
POST /your/callback
X-Hub-Signature-256: sha256=a1b2…

{ "object": "whatsapp_business_account",
  "entry": [{ "changes": [{ "field": "messages",
    "value": { "statuses": [{ "id": "wamid.HBgM…", "status": "delivered", "recipient_id": "9198…" }] } }] }] }

Where WhatsApp webhooks go wrong

  • Parsing before verifying. The signature covers the exact bytes Meta sent. Re-serialised JSON won't match.
  • Slow handlers. Doing the work before answering leads to timeouts and retries, so the same message is processed twice.
  • No record. When a customer says "I replied and nothing happened", there is nothing to look at without a stored copy of each event.
  • Silent drops. If the subscription breaks, nothing errors: messages simply stop arriving.

Relaya and WhatsApp today

Relaya's ingest receives POST webhooks; the GET verification handshake Meta requires isn't answered yet, so WhatsApp isn't a built-in provider. For teams that need WhatsApp now, we build it as a custom integration: the handshake, signature checks with your app secret, duplicate detection on message IDs, and the same recording, forwarding, retries, alerts and replay as every other integration.

Want it? Tell us about your setup and we'll reply with a delivery date.

WhatsApp webhooks: common questions

Does Relaya support WhatsApp webhooks today?

Not as a built-in provider yet. WhatsApp needs a GET verification handshake before Meta will send events, which Relaya’s ingest doesn’t answer yet. We build it as a custom integration for teams that need it now; tell us and we’ll give you a date.

How does WhatsApp sign its webhooks?

Meta sends an X-Hub-Signature-256 header: "sha256=" followed by the hex HMAC-SHA256 of the raw body, keyed with your Meta app secret.

What is the hub.challenge?

When you register a callback URL, Meta sends a GET request with hub.mode=subscribe, hub.verify_token and hub.challenge. Your endpoint must check the verify token and answer with the challenge value; only then are events delivered.

Need WhatsApp webhooks you can trust?

Tell us what you need. We build it on the Relaya connector standard, usually in 1 to 3 weeks.