Incoming block#
Notification is temporarily not working
Incoming webhook of this type contains information about adding a chat to the list of blocked contacts. This notification indicates that a blocking event has occurred.
When receiving a block from the interlocutor, messages to the number will have the
sent
status. Read more why is the message status sent?
Webhook#
Webhook parameters#
Parameter | Type | Description |
---|---|---|
typeWebhook | string | Incoming webhook type. For webhooks of this type the parameter takes on the value incomingBlock |
instanceData | object | Instance data |
timestamp | integer | Event timestamp in UNIX format |
chatId | integer | Chat Id in WhatsApp format. By default, takes the value 10000000000@c.us |
chatState | string | Chat state. Have variants: |
blocked - The contact has blocked the chat |
instanceData
object parameters
Parameter | Type | Description |
---|---|---|
idInstance | integer | Instance Id. The size of the integer is int64. Values range include from 1 to 10 digits |
wid | string | Account Id in WhatsApp format |
typeInstance | string | Instance messenger type |
Webhook body example#
{
"typeWebhook":"incomingBlock",
"instanceData": {
"idInstance": 1234,
"wid": "11001234567@c.us",
"typeInstance":"whatsapp"
},
"timestamp": 1586700690,
"chatId": "10000000000@c.us",
"chatState": "blocked"
}