.env
with global events/webhook/instance
Parameter | Type | Required | Description |
---|---|---|---|
enabled | boolean | Required | Enter “true” to create or change Webhook data, or “false” if you want to stop using it. |
url | string | Required | Webhook URL to receive event data. |
webhook_by_events | boolean | Optional | Want to generate a specific Webhook URL for each of your events. |
events | array | Optional | List of events to be processed. If you don’t want to use some of these events, just remove them from the list. |
Environment variable | URL | Description |
---|---|---|
APPLICATION_STARTUP | /application-startup | Notifies you when an application startup |
QRCODE_UPDATED | /qrcode-updated | Sends the base64 of the qrcode for reading |
CONNECTION_UPDATE | /connection-update | Informs the status of the connection with WhatsApp |
MESSAGES_SET | /messages-set | Sends a list of all your messages uploaded on WhatsApp. This event occurs only once |
MESSAGES_UPSERT | /messages-upsert | Notifies you when a message is received |
MESSAGES_UPDATE | /messages-update | Tells you when a message is updated |
MESSAGES_DELETE | /messages-delete | Tells you when a message is deleted |
SEND_MESSAGE | /send-message | Notifies when a message is sent |
CONTACTS_SET | /contacts-set | Performs initial loading of all contacts.This event occurs only once |
CONTACTS_UPSERT | /contacts-upsert | Reloads all contacts with additional information.This event occurs only once |
CONTACTS_UPDATE | /contacts-update | Informs you when the chat is updated |
PRESENCE_UPDATE | /presence-update | Informs if the user is online, if he is performing some action like writing or recording and his last seen: ‘unavailable’, ‘available’, ‘composing’, ‘recording’, ‘paused’ |
CHATS_SET | /chats-set | Send a list of all loaded chats |
CHATS_UPDATE | /chats-update | Informs you when the chat is updated |
CHATS_UPSERT | /chats-upsert | Sends any new chat information |
CHATS_DELETE | /chats-delete | Notify you when a message is deleted |
GROUPS_UPSERT | /groups-upsert | Notifies when a group is created |
GROUPS_UPDATE | /groups-update | Notifies when a group has its information updated |
GROUP_PARTICIPANTS_UPDATE | /group-participants-update | Notifies when an action occurs involving a participant: ‘add’, ‘remove’, ‘promote’, ‘demote’ |
NEW_TOKEN | /new-jwt | Notifies when the token (jwt) is updated |
https://sub.domain.com/webhook/
. Evolution will add automatically in the end of the url the name of the event when webhook_by_events
is set to true.
Method | Endpoint |
---|---|
GET | [baseUrl]/webhook/find/[instance] |