Webhook Management
Configures custom webhooks and toggles system webhook event forwarding for this session. (Paid users only)
Authentication Required
Login to swap the placeholders with your real Instance ID and Access Token.
Log InNo query parameters required
This endpoint doesn't expect data in the URL.
Best practices
Include the system webhook URL inside the webhooks array during POST requests if you wish to toggle or update its event filters without disabling chat inbox sync.
Always ensure your target webhook URL returns a fast HTTP 200/202 status code to prevent engine timeout and automatic retry backoffs.
Webhook Orchestrator: Complete Guide to /v2/session/webhook
The /v2/session/webhook endpoint allows paid developers to directly program and subscribe their instances to real-time events. By calling this endpoint, you can configure your own custom HTTP destination URLs to receive incoming messages, message delivery status (ACKs), groups, calls, polls, presence updates, and more.
[!IMPORTANT] This endpoint is only available for paid subscription accounts (Unlimited tiers). Free tier users will receive a
403 Forbiddenerror with codesubscription_required.
🏗️ Supported Methods
1. GET - Fetch Current Configurations
Retrieves the list of custom webhooks currently configured on the WhatsApp Engine alongside the Wawp Core system webhook status.
Response Structure:
webhooks: An array of user-defined custom webhooks.systemConfig: The core system webhook configurations (for inbox syncing, auto-responders, push notifications, etc.)
2. POST - Configure Webhooks
Allows you to overwrite the current webhooks list or update event filters and toggle statuses.
Request Payload:
webhooks: Array of objects containingurl(string),events(array of strings), andis_active(boolean or number 0/1).
🚀 Available Events to Subscribe
You can configure each webhook to receive specific event categories to optimize server resources:
message: Standard text and media messages (Inbound).message.any: Both incoming and outgoing messages.message.ack: Delivery and read acknowledgements.message.edited: Real-time updates when messages are modified.poll.vote: Real-time updates on poll selections.group.join/group.leave: Group membership changes.call.received: Incoming WhatsApp calls.- And many more standard engine events!
Request Parameters
Configure the parameters required to interact with this endpoint. All query and body arguments are listed below with their details.
URL Parameters
Passed in the URL query stringstring | The 12-character ID of the instance Example: | ||
string | Your API Access Token Example: | ||
array | — | Array of webhook configurations to set (for POST requests) Example: |
Request Samples
Use these ready-to-go code snippets to integrate our API into your project quickly and efficiently. Choose your preferred language and library.
Expected Responses
Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.
Example
{
"status": "success",
"webhooks": {
"0": {
"url": "https://my-app.com/webhook",
"events": {
"0": "message",
"1": "message.ack"
},
"is_active": 1,
"enabled": true
}
},
"systemConfig": {
"url": "https://app.wawp.net/api/webhook/xxxxxxxxx",
"is_active": 1,
"events": {
"0": "message",
"1": "message.ack",
"2": "message.edited"
}
}
}Command Palette
Search for a command to run...