Webhooks
Webhooks push workspace events to your endpoint as signed JSON POST requests. Use them to mirror WaaPY activity into your own systems, trigger automations, or keep an external audit trail.
Create a Webhook from + Add Integration, then choose Webhook in the wizard. WaaPY generates a signing secret on creation and shows it once.
Each Webhook appears as a card in Live Integration Pipelines. The card shows the endpoint URL, whether a signing secret is available, and the buttons for copying the secret, sending a test, viewing logs, editing, and deleting the integration.

Signature Modes
Every delivery can carry the legacy shared secret, a timestamped HMAC signature, or both. Choose the mode under Webhook signature mode in the wizard.
| Mode | Headers | Use when |
|---|---|---|
| Dual | X-Waapy-Signature, X-Waapy-Timestamp, X-Waapy-Signature-V2 | Your receiver still checks the raw secret while you add HMAC verification. |
| HMAC only | X-Waapy-Timestamp, X-Waapy-Signature-V2 | Your receiver verifies HMAC. The raw secret is not sent. |
| Legacy only | X-Waapy-Signature | Your receiver cannot verify HMAC. |
New integrations default to Dual. Integrations created before signature modes existed continue to send both headers. When you edit one of them, the wizard shows a Legacy signature in use alert and selects Legacy only. Choose Dual before you save, because saving stores the selected mode.
Events Delivered
| Event | When it fires |
|---|---|
message.created | A message is created (inbound or outbound). The fromMe field distinguishes direction. |
message.status | A message's delivery or read status changes (ack update). |
message.reacted | A reaction is added to or removed from a message. The reaction field is null when removed. |
ticket.closed | A ticket is closed. |
test | When you click Send Test. |
Request Format
- Method:
POST - Content-Type:
application/json - Headers: any custom headers you configured, plus the signature headers for the selected mode:
X-Waapy-Timestampin Unix seconds,X-Waapy-Signature-V2for the HMAC, andX-Waapy-Signaturefor the raw secret in Dual and Legacy only modes. - Body:
{
"event": "message.created",
"timestamp": "2026-10-22T10:00:00.000Z",
"workspace_id": "your_workspace_id",
"data": { }
}
Example message.created payload
This example shows an inbound WhatsApp text message with a queue, an assigned user, and one label:
{
"event": "message.created",
"timestamp": "2026-11-30T10:00:00.000Z",
"workspace_id": "11111111-1111-4111-8111-111111111111",
"data": {
"messageId": "22222222-2222-4222-8222-222222222222",
"ticketId": 1042,
"internalTicketId": "33333333-3333-4333-8333-333333333333",
"ticketStatus": "IN_PROGRESS",
"queue": {
"id": "44444444-4444-4444-8444-444444444444",
"name": "Support"
},
"assignedUser": {
"id": "55555555-5555-4555-8555-555555555555",
"name": "Aisyah"
},
"connectionName": "Sales WhatsApp",
"channelType": "WHATSAPP",
"labels": [
{
"id": "66666666-6666-4666-8666-666666666666",
"name": "VIP",
"color": "#16a34a",
"labelSlug": "vip"
}
],
"body": "Hi, is the order ready?",
"fromMe": false,
"sender": null,
"mediaType": null,
"contact": {
"id": "77777777-7777-4777-8777-777777777777",
"name": "Nurul",
"number": "60123456789",
"identifier": "60123456789",
"wa_id": "60123456789",
},
"timestamp": "2026-11-30T09:59:58.000Z"
}
}
The data object for message.created includes: messageId, ticketId (running number), internalTicketId, ticketStatus, queue, assignedUser, connectionName, channelType, labels (id, name, color, labelSlug), body, fromMe, sender, mediaType, mediaUrl, mediaCaption, quotedMessage, ctwa (click-to-WhatsApp ad data), and contact (id, name, number, identifier, wa_id, email), plus timestamp.
The data object for message.status includes: messageId, ticketId, internalTicketId, ticketStatus, connectionName, channelType, ack, status, reason, and timestamp.
The data object for ticket.closed includes: ticketId, internalTicketId, previousStatus, status, connectionName, channelType, labels, queue, assignedUser, contact, closedBy, and timestamp.
The test payload data is { "message": "This is a test event from Waapy" }.
Verifying Requests
In Dual and HMAC only modes, verify X-Waapy-Signature-V2. Compute HMAC-SHA256 with the integration secret over the timestamp, a dot, then the exact raw request body:
signature = HMAC-SHA256(secret, timestamp + "." + raw_body)
The header contains the digest as lowercase hexadecimal. Read the timestamp from X-Waapy-Timestamp, which is in Unix seconds. Use the raw body before JSON parsing or re-serialization, because any reformatting changes the signature. Reject requests whose timestamp is more than 5 minutes old.
In Dual and Legacy only modes, X-Waapy-Signature also contains the raw secret. An exact string comparison is enough for that legacy check. Prefer HMAC verification and switch to HMAC only once your receiver passes.
Delivery, Timeout, and Retries
- Timeout: 10 seconds per attempt (5 seconds for Send Test).
- Retries: 3 attempts with exponential backoff starting at 1 second. Retries happen only on HTTP 5xx or network and timeout errors. A 4xx response is logged as failed and is not retried.
- Each attempt is recorded in Integration Logs (status code, response body truncated to 1000 characters, duration, success flag).
Send Test Result
Clicking Send Test (paper-plane icon) delivers the test event to your URL and shows a success or failure toast with the response.