WhatsApp Webhooks: How to Set Up and Verify Them on the Cloud API

By Alva Chew 7 min read Updated November 26, 2026

A WhatsApp webhook is the HTTPS endpoint where Meta sends what happens on your number: every incoming customer message and the status of every message you send. You set it up in your Meta app, answer Meta’s verification request with the challenge value, subscribe to the messages field and check the signature on every event. If you would rather receive clean business events, such as a new contact or a chat that needs your team, AeroChat sends its own signed webhooks to your systems.

What WhatsApp webhooks send you

Meta sends webhooks as HTTP POST requests with a JSON body. The messages field covers two things: messages customers send to your business number, and status updates for the messages you sent.

Status What it means Shown in WhatsApp
sent The message left Meta’s servers. One tick
delivered The message reached the customer’s device. Two ticks
read The message was shown in an open chat on the customer’s device. Two blue ticks
failed The message could not be sent or delivered. Red warning triangle
played A voice message was played for the first time. Blue microphone

If a customer reads a message the moment it arrives, Meta may send read without a separate delivered status. Source: Meta, Cloud API webhooks reference, message status, checked 26 November 2026.

How to set up a WhatsApp webhook, step by step

  1. Build an HTTPS endpoint. It needs a valid TLS certificate, correctly installed. Meta does not support self-signed certificates.
  2. Handle the verification request. When you save the callback URL, Meta sends a GET request with hub.mode set to subscribe, a hub.challenge value and the hub.verify_token you chose. If the token matches yours, reply with HTTP 200 and the hub.challenge value. Otherwise reply with a 400-level status.
  3. Add the callback URL and verify token in your app. In the App Dashboard, open WhatsApp, then Configuration. Apps created with the “Connect with customers through WhatsApp” use case use Use cases, Customize, Configuration instead.
  4. Subscribe to fields. Subscribe to messages for incoming messages and statuses. The messages field needs the whatsapp_business_messaging permission, and other fields need whatsapp_business_management.
  5. Check every signature. Each POST carries an X-Hub-Signature-256 header. Compute an HMAC-SHA256 of the raw payload with your app secret and compare it with the value after sha256=. Reject anything that does not match.
  6. Reply 200 quickly. Return HTTP 200 for a valid event, then do the work. Meta retries on any other response.
  7. Test, then go live. Send a test payload from the dashboard and make sure your app is in Live mode, because some webhooks do not fire in Dev mode.

Sources: Meta, Create a webhook endpoint and Webhooks overview, checked 26 November 2026.

Rules that trip people up

Rule What Meta says
Retries If your endpoint returns anything other than 200, or delivery fails, Meta retries with decreasing frequency for up to 7 days.
Duplicates Retries can produce duplicate notifications, so make your handler idempotent.
Payload size Up to 3 MB.
Security Mutual TLS is supported. Meta publishes its IP ranges but recommends mTLS over IP allowlisting, because the ranges change.
Customer IDs Payloads include a business-scoped user ID, and the phone number may be missing. Use that ID to identify the customer.

The business-scoped user ID matters more each month as customers adopt WhatsApp usernames. A webhook handler that keys everything on phone number will start to miss customers.

What you still have to build after the webhook

A webhook only tells you something happened. You still need to store the message, match it to a customer, decide the reply, send it inside the 24-hour window or with an approved template, and show it to your team. For most businesses that is the expensive part. See WhatsApp API for developers for the send side.

Do it with AeroChat instead

When your number runs on AeroChat, Meta’s webhook is already connected and handled. AeroChat reads each message, answers it, does the work in your systems, and shows the conversation in your team inbox. You then choose which business events go to your own systems.

AeroChat’s outbound webhooks

  • Events you can subscribe to: each AI reply turn, every inbound and outbound message, a chat passed to your team, a chat resolved, a new contact, an updated contact, and each tool a workflow calls.
  • Signed: every delivery carries an X-AeroChat-Signature header, an HMAC-SHA256 of the raw body with your secret, plus the event type and a unique delivery ID.
  • Safe by default: endpoints must use HTTPS, card data and secrets are always removed, and stricter profiles can remove email, phone and IP too.
  • Testable: send a test event from the dashboard and see the status code your endpoint returned.
  • Deduplicate on the event ID. Delivery is at least once and not ordered.
POST https://your-endpoint.example.com/aerochat
X-AeroChat-Event: contact.created
X-AeroChat-Signature: {hmac_sha256_hex}

{
  "id": "{event_id}",
  "type": "contact.created",
  "created_at": "{timestamp}",
  "data": { "contact_id": "{contact_id}", "name": "{customer_name}" }
}

Prefer no code? The same events reach Zapier, Make and n8n, or go straight into HubSpot, Pipedrive or Zendesk through a workflow you describe in your own words.

Customer: Hi, I’d like a quote for 200 printed tote bags with our logo.

AeroChat: Happy to help. One-color print on natural canvas is $3.80 a bag, so 200 comes to $760, with delivery in 10 business days. Want me to send the quote as a PDF and a payment link for the 50% deposit?

Customer: Yes, send both.

AeroChat: Here’s your quote PDF and the deposit link for $380. Once it’s paid, I’ll confirm your production date here.

What happens in your systems: AeroChat sends contact.created and conversation.message events to your webhook, your CRM creates the deal at $760, and the Airwallex payment link is logged against it.

Copy this into AeroChat

When a customer asks for a quote on WhatsApp, follow these steps.

  1. Ask for quantity, product and print colors if they did not say.
  2. Work out the price from our price list and send the quote as a PDF.
  3. Send a payment link for a 50% deposit.
  4. Send the quote details to our webhook so the CRM creates a deal.

Reply in the customer’s language.

Questions

How do I verify a WhatsApp webhook?

Reply to Meta’s GET request with HTTP 200 and the hub.challenge value, after checking that hub.verify_token matches the token you set in your app.

Why is my WhatsApp webhook not receiving messages?

Check that your endpoint accepts requests and has a valid, non-self-signed certificate, that you subscribed to the messages field, and that your app is in Live mode. Then send a test payload from the dashboard.

How long does Meta retry a failed webhook?

Up to 7 days, with decreasing frequency, until your endpoint returns 200. Expect duplicates.

Can I get WhatsApp events without running my own server?

Yes. With AeroChat, Meta’s webhook is handled for you, and you can send business events to Zapier, Make, n8n or your CRM.

Payments inside the chat run through Airwallex, AeroChat’s built-in payment partner. No Airwallex account yet? Open one through AeroChat’s Airwallex partner link.

Get the events that matter, not raw payloads

Let AeroChat handle Meta’s webhook, answer every customer, and send your systems the contacts, chats and deals.

Start your 7-day free trial. No credit card needed.

On Shopify? Install AeroChat from the Shopify App Store.

Related workflows: CRM updates from WhatsApp, quote requests and lead capture. Related guides: WhatsApp API errors, WhatsApp security and compliance and our guide to agentic WhatsApp.