Any Message

Catch-all event for any message activity in the session.

Best practices

  • Use this for logging or backup systems that need to track every single movement.

  • Consider filtering specific events instead if you only need certain message types.

Expected Responses

Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.

Webhook Payload Example
application/json
string *
number *
string *
object *
string *
string *
object *
object *

Example

{
"id": "evt_01...",
"timestamp": 1634567890123,
"session": "default",
"metadata": {
  "user.id": "123",
  "user.email": "email@example.com"
  },
"engine": "WEBJS",
"event": "message.any",
"payload": {
  "id": "true_11111111111@c.us_...",
  "body": "Catching everything!",
  "from": "11111111111@c.us",
  "to": "22222222222@c.us"
  },
"me": {
  "id": "11111111111@c.us",
  "lid": "123@lid",
  "pushName": "Instance"
  }
}

Command Palette

Search for a command to run...