Home Documentation Services FAQ Contact details
Sign in

Webhook notifications

The system can send event notifications (incoming messages, status of sent messages). To send notifications to external systems, the HTTP address must be configured in your account. The procedure for receiving notifications on the side of the external system is not defined. This should be taken into account when processing events based on the timestamp in the timestamp field.

Request format

                "body": "hello",
                "chatId": "11111111111@c.us",
                "formattedTitle": "Alex",
                "fromMe": false,
                "sender": "91111111111@c.us",
                "timestamp": "1537470363",
                "type": "chat",

                "status": "1",
                "chatId": "11111111111@c.us",
Parameter Value
Parameters nested in messages
body If the parameter value type— chat, the message text is displayed, otherwise a link to download the file is displayed.
chatId Individual chat ID
formattedTitle Sender name
fromMe Possible values:

  • true — outgoing message.

  • false — incoming message.
sender Message author ID
timestamp UNIX timestamp in seconds
type Message type.

Possible values:

  • document — document.

  • video — video.

  • image — image.

  • ptt — voice message.

  • audio — audio recording.

  • chat — text message.
Parameters nested in ask
chatId Individual chat ID

Response format

The server must tell the system it has received the information with the HTTP code 200 OK