Incoming webhooks types#
Incoming webhooks may be of the below types:
- incomingMessageReceived - notification about incoming messages and files
- outgoingMessageReceived - notification about a message sent from phone
- outgoingAPIMessageReceived - notification about message sent via API
- outgoingMessageStatus - notification about outgoing messages sending/delivering/reading statuses
- stateInstanceChanged - notification about instance authorization state change
- statusInstanceChanged - notification about instance socket state change
- deviceInfo - notification about device (phone) and battery level
- incomingCall - notification about incoming call
- incomingBlock - notification about adding a chat to the list of blocked contacts
- quotaExceeded - notification about exceeding Developer plan limits
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"
}