Skip to main content
WapNotify receives WhatsApp events (incoming messages, delivery status updates) via a webhook endpoint registered with Meta. This page explains the webhook mechanism for developers integrating or debugging.

Webhook endpoints

Both endpoints are public — no Authorization header is needed. Security is provided by HMAC signature verification on POST requests.

Webhook verification (GET)

When you register your webhook URL in Meta, Meta sends a GET request to verify ownership:
WapNotify checks that hub.verify_token matches the Webhook Verify Token stored in your workspace settings. If it matches, it responds with the hub.challenge value and a 200 status. If verification fails, check that the Verify Token in Meta matches exactly what you entered in Settings → WhatsApp Setup.

Inbound events (POST)

Meta sends a POST request for every event — incoming messages, delivery receipts, read receipts.

Signature verification

Every POST request includes an x-hub-signature-256 header:
WapNotify computes HMAC-SHA256(raw_body, app_secret) and compares it to the header value. Requests that fail signature verification are rejected with 403 Forbidden. The app_secret is the App Secret stored in your workspace WhatsApp settings (from Meta → Settings → Basic).

Example: inbound text message

Example: delivery status update

Status values: sent, delivered, read, failed.

Retry behaviour

Meta retries failed webhook deliveries (non-2xx responses) with exponential backoff. WapNotify deduplicates messages using the wa_message_id field — receiving the same message ID twice is safe.