Instance Webhook
Manage the configuration to receive notifications about messages, connections, and other events in real time on your server.Testing Tools
Before integrating, we recommend testing that the data is received. Use one of these tools to inspect the payload:Webhook.cool
SVIX
Webhook.site
Simple Mode (Recommended)
This is the easiest way to configure it. The system automatically manages a single webhook per instance, creating or updating it as needed. Rules:- Do not include
actionoridin the payload. - Always use filters to avoid infinite loops.
Payload Example
Advanced Mode
Use this mode only if you need to register multiple webhooks for the same instance (e.g., one webhook for messages and another for connection status).Manual Management
To control multiple webhooks, you must send theaction field.
Available Events
Select which types of notifications you want to receive in theevents array.
Messages and Chats
Messages and Chats
System and Connection
System and Connection
Marketing and Leads
Marketing and Leads
Exclusion Filters (excludeMessages)
Use the excludeMessages field to ignore specific messages and save processing.
URL Parameters (Dynamic Routes)
You can have the API add information directly to your webhook URL, making routing easier in your backend (e.g., using Node.js/Express or Laravel Routes).Available Options
addUrlEvents
Adds the event to the URL.
.../webhook/{evento}addUrlTypesMessages
Adds the message type to the URL.
.../webhook/{tipo}Result Examples
Suppose your base URL ishttps://api.example.com/webhook:
-
Events Only (
addUrlEvents: true):https://api.example.com/webhook/messagehttps://api.example.com/webhook/connection
-
Types Only (
addUrlTypesMessages: true):https://api.example.com/webhook/conversation(text)https://api.example.com/webhook/image(media)
-
Both Enabled (Combination):
The order is always:
{URL_BASE}/{EVENTO}/{TIPO_MENSAGEM}https://api.example.com/webhook/message/conversationhttps://api.example.com/webhook/message/audio
Make sure your backend is configured to accept dynamic parameters (wildcards) in the route to process these URLs correctly.
