Received Messages
These are the sample payloads for Inbound Notification you will receive on your webhook
Text Message
The following is an example of a text message you received from a customer:
{
"contacts": [
{
"profile": {
"name": "NAME"
},
"wa_id": PHONE_NUMBER
}
],
"messages": [
{
"from": PHONE_NUMBER,
"id": "wamid.ID",
"timestamp": TIMESTAMP,
"text": {
"body": "MESSAGE_BODY"
},
"type": "text"
}
]
}Media Message
When media messages are received, the Webhook notification contains information that identifies the media object and enables you to download media. see Download Media
Reaction Message
The following is an example of a reaction message you received from a customer.
Location Message
The following is an example of a location message you received from a customer.
Contact Message
The following is an example of a Contact message you received from a customer.
Callback Message From Quick Reply Message
When your customer clicks on a quick reply button in an interactive message template, a response is sent. Below is an example of the callback format
Callback Message From Reply Button
The following webhook notification is received when a user clicks on a reply button you sent. See interactive message
Callback Message From List Message
The following webhook notification is received when a user clicks on an item from a list message you sent. See interactive message
Unknown Message
It's possible to receive an unknown message callback notification. For example, a customer could send you a message that's not supported, such as a disappearing message (in which case we'd notify the customer that the message type is not supported).
The following is an example of a message you received from a customer that is not supported.
Last updated