Chats

You can find more details about all parameters and their types in the WebHook documentation.

The chats array contains all chats that were sent to the webhook URL. Sent on event "chats.post" or "chats.put". We mentioned more about the events here: Mode setting

New incoming message in chat

{
  "chats": [
    {
      "id": "919984351847@s.whatsapp.net",
      "type": "contact",
      "timestamp": 1712994914,
      "unread": 1,
      "not_spam": true
    }
  ],
  "event": {
    "type": "chats",
    "event": "post"
  },
  "channel_id": "MANTIS-M72HC"
}

New outgoing message in chat

{
  "chats": [
    {
      "id": "919984351847@s.whatsapp.net",
      "type": "contact",
      "timestamp": 1712995377,
      "not_spam": true
    }
  ],
  "event": {
    "type": "chats",
    "event": "post"
  },
  "channel_id": "MANTIS-M72HC"
}

Format

id*

ChatID string pattern: ^[\d-]{10,31}@[\w\.]{1,}$

Chat ID

name

string example: Chat name

Chat name

type*

string example: group

Chat type

Enum: [ group, contact, broadcast, newsletter ]

timestamp

integer example: 1675964377

Chat timestamp

chat_pic

string example: https://example.com/photo.jpg

Chat picture URL

chat_pic_full

string example: https://example.com/photo.jpg

Chat full picture URL

pin

boolean example: true

Is chat pinned

mute

boolean example: true

Is chat muted

mute_until

integer example: 0

Chat mute until

archive

boolean example: true

Is chat archived

unread

integer example: 0

Unread messages count

unread_mention

boolean example: false

Is chat unread mention

read_only

boolean example: false

Is chat read only

not_spam

boolean example: true

Is chat not spam

last_message

Message{...}

labels

Last updated