Message sent via API#
The format of a message, sent via API, is the same as for an incoming message, and Incoming webhooks type takes on the value outgoingAPIMessageReceived
.
Webhook body example#
{
"typeWebhook": "outgoingAPIMessageReceived",
"instanceData": {
"idInstance": 1234,
"wid": "11001234567@c.us",
"typeInstance": "whatsapp"
},
"timestamp": 1588091580,
"idMessage": "F7AEC1B7086ECDC7E6E45923F5EDB825",
"senderData": {
"chatId": "79001234568@c.us",
"sender": "79001234568@c.us",
"chatName": "GreenWaba",
"senderName": "GreenWaba"
},
"messageData":{
// Depending on typeMessage = textMessage
...
...
...
}
}
}