{
"event": "message.any",
"data": {
"id": "<string>",
"event": "message.any",
"metadata": [
{}
],
"me": {
"id": "<string>",
"pushName": "<string>"
},
"payload": {
"id": "<string>",
"timestamp": 123,
"from": "<string>",
"fromMe": true,
"body": "<string>",
"hasMedia": true,
"media": {},
"ack": 123,
"ackName": "<string>",
"replyTo": "<string>",
"_data": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
},
"messageTimestamp": 123,
"pushName": "<string>",
"broadcast": true,
"message": {
"conversation": "<string>",
"messageContextInfo": {
"deviceListMetadata": {
"senderKeyHash": "<string>",
"senderTimestamp": "<string>",
"recipientKeyHash": "<string>",
"recipientTimestamp": "<string>"
},
"deviceListMetadataVersion": 123,
"messageSecret": "<string>"
}
}
}
},
"instanceId": "<string>",
"userId": "<string>"
}
}Messages Any
For all message creations including your own.
WEBHOOK
messages-any
{
"event": "message.any",
"data": {
"id": "<string>",
"event": "message.any",
"metadata": [
{}
],
"me": {
"id": "<string>",
"pushName": "<string>"
},
"payload": {
"id": "<string>",
"timestamp": 123,
"from": "<string>",
"fromMe": true,
"body": "<string>",
"hasMedia": true,
"media": {},
"ack": 123,
"ackName": "<string>",
"replyTo": "<string>",
"_data": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
},
"messageTimestamp": 123,
"pushName": "<string>",
"broadcast": true,
"message": {
"conversation": "<string>",
"messageContextInfo": {
"deviceListMetadata": {
"senderKeyHash": "<string>",
"senderTimestamp": "<string>",
"recipientKeyHash": "<string>",
"recipientTimestamp": "<string>"
},
"deviceListMetadataVersion": 123,
"messageSecret": "<string>"
}
}
}
},
"instanceId": "<string>",
"userId": "<string>"
}
}message.any
Incoming messages (text/audio/media) for user or group chats. Fired for all message creations including your own. Fields:hasMedia: boolean_data: engine-specific internal data
Headers
User UUID associated with the connected WhatsApp instance.
Instance UUID of the connected WhatsApp instance.
Body
application/json
Response
200
The API successfully processed the batch of messages and returned a status of 200, confirming successful receipt and synchronization.