WhatsApp Webhook API
Receive instant notifications for incoming messages, read receipts, presence updates, and group events. Choose webhooks for push delivery or SSE for persistent streaming.
No credit card required · 14-day free trial
Use Cases
Customer Support Bots
Instantly route incoming messages to your helpdesk or chatbot. React to customer queries as they arrive, not hours later.
Order Notifications
Trigger real-time order updates when customers reply with confirmation codes or shipping preferences.
CRM Integration
Push every WhatsApp conversation into Salesforce, HubSpot, or your custom CRM. Keep contact history synced automatically.
Analytics Pipelines
Stream message events to your data warehouse. Track response times and engagement metrics in real time.
Code Examples
Copy, paste, ship.
curl -X PUT https://api.wsapi.chat/account/instances/{instanceId}/settings \
-H "x-api-key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"webhookUrl": "https://your-app.com/webhooks/whatsapp",
"eventFilters": ["message", "message_read", "user_presence"]
}'Key Features
Two Delivery Modes
HTTP webhooks (push) or SSE (persistent stream). The events overview compares them, and you can use both simultaneously
Event Filtering
Subscribe only to events you need, and cut noise and bandwidth. See how to filter events by type
Automatic Retries
Failed deliveries (5xx errors and timeouts) are retried with exponential backoff.
Signature Verification
HMAC-SHA256 signatures on every webhook payload. The message event reference documents what you sign over
Real-Time Events
Events reach your server as they happen, over webhooks or SSE.
No Extra Cost
Webhooks and SSE included in every plan, no per-event fees
Event payload and signature check
Every event arrives as JSON with an eventId, the instanceId, a timestamp, an eventType and an eventData object. When your instance has a signing secret, each webhook also carries an X-Webhook-Signature header: sha256= followed by the HMAC-SHA256 of the raw request body. Compare it in constant time before you trust the payload. To see it in context, see a working bot.
{
"eventId": "evt_1792576800000_a1b2c3d4e5f67890",
"instanceId": "ins_ABCdefGHIjkl",
"eventType": "message",
"receivedAt": "2026-10-21T10:00:00.000Z",
"eventData": {
"id": "3A5F0E9C1B2D4E6F7A80",
"chatId": "1234567890@s.whatsapp.net",
"sender": { "id": "1234567890@s.whatsapp.net", "isMe": false },
"type": "text",
"text": "Hello"
}
}
