Skip to main content

Webhook callback

Common attributes

All webhook callbacks share the following common attributes:
isStatusReply
boolean
Identifies if the received message is a status reply
senderLid
string
WhatsApp contact identifier
connectedPhone
string
Phone number connected to the API
waitingMessage
boolean
Identifies if your message is in the “Waiting for message” status
isEdit
boolean
Identifies if the received message was edited
isGroup
boolean
Indicates if the chat is a group
isNewsletter
boolean
Indicates if the chat is a channel
instanceId
string
Unique identifier for the instance that received the message
messageId
string
Message identifier in the conversation
phone
string
Phone number or group that sent the message
fromMe
boolean
Indicates if the message was sent from the number connected to the API
momment
integer
Moment when the message was received or the error occurred
status
string
Status of the message at the time of sending the callback (PENDING, SENT, RECEIVED, READ, or PLAYED)
chatName
string
Name of the chat or participant that originated the message
senderPhoto
string
URL of the sender’s photo
senderName
string
Sender’s display name
participantPhone
string
Phone number of the group member who sent the message
participantLid
string
WhatsApp contact ID of the group participant who sent the message
broadcast
boolean
Indicates if the message was sent to a broadcast list
type
string
Type of instance event, in this case ReceivedCallback
isVideo
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)

GROUP_CREATE
string
Group was created
GROUP_CHANGE_SUBJECT
string
Group subject was changed
GROUP_CHANGE_DESCRIPTION
string
Group description was changed
GROUP_CHANGE_ICON
string
Group icon was changed
GROUP_PARTICIPANT_PROMOTE
string
A participant was promoted to admin
GROUP_PARTICIPANT_DEMOTE
string
A participant was demoted from admin
GROUP_PARTICIPANT_LEAVE
string
Participant left the group
GROUP_PARTICIPANT_ADD
string
Participant was added to the group
GROUP_PARTICIPANT_REMOVE
string
Participant was removed from the group
GROUP_PARTICIPANT_INVITE
string
Participant accepted the invite link and joined the group
CALL_MISSED_VOICE
string
Missed voice call
CALL_MISSED_VIDEO
string
Missed video call
E2E_ENCRYPTED
string
Message indicating end-to-end encryption
CIPHERTEXT
string
Message protected by encryption
BLUE_MSG_SELF_PREMISE_UNVERIFIED
string
Business account not verified by WhatsApp
BLUE_MSG_SELF_PREMISE_VERIFIED
string
Business account verified by WhatsApp
BIZ_MOVE_TO_CONSUMER_APP
string
Business account changed to personal account
REVOKE
string
Message deleted
WA_OLD_REGISTRATION
string
Sending the confirmation code for number registration