Documentation Index
Fetch the complete documentation index at: https://docs.wazzapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Webhooks
Webhooks let WazzAPI send signed HTTP POST requests to your endpoint whenever important events happen.Overview
Instead of polling for updates, register a webhook subscription and let WazzAPI notify your application automatically.Choose events
Subscribe to the events your application actually handles, such as
message.delivered or device.disconnected.Security
All webhook payloads are signed with HMAC-SHA256. Verify the signature against the raw request body bytes before parsing JSON.Verifying Signatures
WazzAPI includes these headers on each delivery:X-Wazzapi-SignatureX-Wazzapi-EventX-Wazzapi-Event-ID
sha256= prefixed digest of the raw body signed with your webhook secret.
Node.js Example
Event Types
Common events you can subscribe to:| Event | Description |
|---|---|
message.received | An inbound WhatsApp message arrived. |
message.sent | An outbound message was accepted by WhatsApp. |
message.delivered | An outbound message reached the recipient device. |
message.read | The recipient read the outbound message. |
message.failed | An outbound message failed with a reason. |
device.connected | A linked WhatsApp device returned to a healthy state. |
device.disconnected | A linked device lost connectivity or needs attention. |
Payload Structure
Retry Policy
If your endpoint does not return a2xx response in time, WazzAPI retries with backoff.
Current retry intervals are:
- 1 minute
- 5 minutes
- 15 minutes
- 30 minutes
- 1 hour
- 2 hours
- 4 hours
- 8 hours
- 24 hours
200 OK immediately.