Incoming webhooks types#
Incoming webhooks may be of the below types:
- incomingMessageReceived - incoming messages and files notification
- outgoingMessageReceived - notification about a message sent from phone
- outgoingAPIMessageReceived - Message sent via API
- outgoingMessageStatus - notification about outgoing messages sending/delivering/reading statuses
- stateInstanceChanged - instance authorization state change notification
- statusInstanceChanged - instance socket state change notification
- deviceInfo - device (phone) and battery level notification
- incomingCall - incoming call notification
- incomingBlock - Notification about adding a chat to the list of blocked contacts
Get webhooks of different types#
To enable or disable webhooks by types, use SetSettings method
Method request body example SetSettings#
{
"outgoingWebhook": "yes",
"outgoingMessageWebhook": "yes",
"stateWebhook": "yes",
"incomingWebhook": "yes",
"deviceWebhook": "no",
"statusInstanceChangedWebhook": "yes"
}