Skip to main content
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

x-userId
string
required

User UUID associated with the connected WhatsApp instance.

x-instanceId
string
required

Instance UUID of the connected WhatsApp instance.

Body

application/json
event
enum<string>
Available options:
message.any
data
object

Response

200

The API successfully processed the batch of messages and returned a status of 200, confirming successful receipt and synchronization.

I