Skip to main content

Webhook callback

Common attributes

All webhook callbacks share the following common attributes:
boolean
Identifies if the received message is a status reply
string
WhatsApp contact identifier
string
Phone number connected to the API
boolean
Identifies if your message is in the “Waiting for message” status
boolean
Identifies if the received message was edited
boolean
Indicates if the chat is a group
boolean
Indicates if the chat is a channel
string
Unique identifier for the instance that received the message
string
Message identifier in the conversation
string
Phone number or group that sent the message
boolean
Indicates if the message was sent from the number connected to the API
integer
Moment when the message was received or the error occurred
string
Status of the message at the time of sending the callback (PENDING, SENT, RECEIVED, READ, or PLAYED)
string
Name of the chat or participant that originated the message
string
URL of the sender’s photo
string
Sender’s display name
string
Phone number of the group member who sent the message
string
WhatsApp contact ID of the group participant who sent the message
boolean
Indicates if the message was sent to a broadcast list
string
Type of instance event, in this case ReceivedCallback
boolean
Type of event when receiving a call, indicating whether it is a video call or not

Callback examples by type

Text and media messages

Reactions and interactions

Polls

Buttons and lists

Templates

Ads

Products and orders

Payments

Events

Other interactions

Status and profile

Broadcast list


Notifications

In addition to messages, the webhook also receives call, group, and account notifications.

Calls

Calls with enabled and contracted call functionality

Groups

Channels

Notification types

Concept

Notifications are events sent via webhook that indicate changes or actions on WhatsApp, such as calls, group interactions, and account updates. These events can be identified by the notification attribute present in the payload. Below are the notification types and their meanings.

Notifications (webhook events)

string
Group was created
string
Group subject was changed
string
Group description was changed
string
Group icon was changed
string
A participant was promoted to admin
string
A participant was demoted from admin
string
Participant left the group
string
Participant was added to the group
string
Participant was removed from the group
string
Participant accepted the invite link and joined the group
string
Missed voice call
string
Missed video call
string
Message indicating end-to-end encryption
string
Message protected by encryption
string
Business account not verified by WhatsApp
string
Business account verified by WhatsApp
string
Business account changed to personal account
string
Message deleted
string
Sending the confirmation code for number registration