Webhooks
Webhooks let you to receive real-time notifications when specific events occur. You can subscribe, retrieve, update, and delete webhooks using the API. An account can have up to 5 webhooks; the serverUrl must be HTTPS. Payload formats are described in Webhooks.
Values for events: incoming_whatsapp_message, outgoing_whatsapp_message, incoming_instagram_message, outgoing_instagram_message, incoming_telegram_message, outgoing_telegram_message, incoming_messenger_message, outgoing_messenger_message, incoming_website_message, outgoing_website_message, incoming_tiktok_message, outgoing_tiktok_message, client_created, client_tag_added, client_tag_removed, contact_created, contact_tag_added, contact_tag_removed, appointment_scheduled, appointment_rescheduled, appointment_cancelled, appointment_visited, appointment_no_show, appointment_double_confirmed, class_participant_scheduled, class_participant_rescheduled, class_participant_cancelled, class_participant_visited, class_participant_no_show, class_participant_waitlisted, invoice_draft, invoice_sent, invoice_pending, invoice_paid.
Client events need the CRM Suite add-on, appointment and class events need Bookings, and invoice events need Sales.
api.whautomate.comGet All Webhooks
Retrieve a list of all registered webhooks.
/v1/webhooksx-api-keystringrequiredlimitstringpagestringidstringnamestringrequiredactivebooleanrequiredserverUrlstringrequiredwebhookHeadersobject[]Array of HTTP headers to be included in webhook requests
eventsstring (enum)[]requiredcreatedAtstringupdatedAtstringcurl -X GET "https://api.whautomate.com/v1/webhooks" \
-H "x-api-key: YOUR_API_KEY"
[
{
"id": "string",
"name": "string",
"active": true,
"serverUrl": "string",
"webhookHeaders": [
{
"key": "string",
"value": "string"
}
],
"events": [
"incoming_whatsapp_message"
],
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}
]
Create Webhook
Register a new webhook subscription.
/v1/webhooksx-api-keystringrequiredidstringnamestringrequiredactivebooleanrequiredserverUrlstringrequiredwebhookHeadersobject[]Array of HTTP headers to be included in webhook requests
eventsstring (enum)[]requiredcreatedAtstringupdatedAtstringidstringnamestringrequiredactivebooleanrequiredserverUrlstringrequiredwebhookHeadersobject[]Array of HTTP headers to be included in webhook requests
eventsstring (enum)[]requiredcreatedAtstringupdatedAtstringcurl -X POST "https://api.whautomate.com/v1/webhooks" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "string",
"name": "string",
"active": true,
"serverUrl": "string",
"webhookHeaders": [
{
"key": "string",
"value": "string"
}
],
"events": [
"incoming_whatsapp_message"
],
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}'
{
"id": "string",
"name": "string",
"active": true,
"serverUrl": "string",
"webhookHeaders": [
{
"key": "string",
"value": "string"
}
],
"events": [
"incoming_whatsapp_message"
],
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}
Get Webhook By Id
Retrieve details of a specific webhook subscription.
/v1/webhooks/{webhookId}x-api-keystringrequiredwebhookIdstringrequiredidstringnamestringrequiredactivebooleanrequiredserverUrlstringrequiredwebhookHeadersobject[]Array of HTTP headers to be included in webhook requests
eventsstring (enum)[]requiredcreatedAtstringupdatedAtstringcurl -X GET "https://api.whautomate.com/v1/webhooks/{webhookId}" \
-H "x-api-key: YOUR_API_KEY"
{
"id": "string",
"name": "string",
"active": true,
"serverUrl": "string",
"webhookHeaders": [
{
"key": "string",
"value": "string"
}
],
"events": [
"incoming_whatsapp_message"
],
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}
Update Webhook
Update an existing webhook subscription.
/v1/webhooks/{webhookId}x-api-keystringrequiredwebhookIdstringrequiredidstringnamestringrequiredactivebooleanrequiredserverUrlstringrequiredwebhookHeadersobject[]Array of HTTP headers to be included in webhook requests
eventsstring (enum)[]requiredcreatedAtstringupdatedAtstringidstringnamestringrequiredactivebooleanrequiredserverUrlstringrequiredwebhookHeadersobject[]Array of HTTP headers to be included in webhook requests
eventsstring (enum)[]requiredcreatedAtstringupdatedAtstringcurl -X PUT "https://api.whautomate.com/v1/webhooks/{webhookId}" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "string",
"name": "string",
"active": true,
"serverUrl": "string",
"webhookHeaders": [
{
"key": "string",
"value": "string"
}
],
"events": [
"incoming_whatsapp_message"
],
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}'
{
"id": "string",
"name": "string",
"active": true,
"serverUrl": "string",
"webhookHeaders": [
{
"key": "string",
"value": "string"
}
],
"events": [
"incoming_whatsapp_message"
],
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}
Delete Webhook
Remove a webhook subscription.
/v1/webhooks/{webhookId}x-api-keystringrequiredwebhookIdstringrequiredsuccessbooleancurl -X DELETE "https://api.whautomate.com/v1/webhooks/{webhookId}" \
-H "x-api-key: YOUR_API_KEY"
{
"success": true
}