Engagement OTT Mobile-Originated Events

Event Notification Service (ENS) supports several event notification types and their corresponding payloads for WhatsApp messages.

AttributeTypeDescription
eventCategoryTypeStringA string that represents the type of event that occurred.
eidStringThe Enterprise ID associated with the account that produced the event.
midStringThe Business Units ID of the account that produced the event.
senderTypeStringThe type of sender. The only supported value is WhatsApp.
messageTypeStringThe type of message.
channelIdStringThe ID of the channel that sent the message.
messageIdStringA unique message ID that’s generated by WhatsApp.
timestampUTCNumberThe date and time when the event occurred, represented as a UTC Unix timestamp.
mobileNumberStringThe subscriber’s mobile number.
contactIdStringThe subscriber’s contact ID.
messageBodyObjectThe body of the message. The maximum size of the message is 1024 characters.

When you receive a message from a customer to your WhatsApp account, you receive a text event. This sample shows an example of a text event.

The payload includes metadata about the media type but not the media itself. For example, if the media is a document, the payload provides details such as the file name, MIME type, and other relevant attributes.

To download the media, use the Download rich media inbound messages API.

For information on supported media types, size limitations, and usage details, see Supported Media Types.

Interactive messages in WhatsApp include messages with WhatsApp Flows, lists, and quick reply buttons.

This example shows the payload that’s sent to ENS when a customer submits a flow in a WhatsApp message.

This example shows the payload that’s sent to ENS when a customer selects a list item in a WhatsApp message.

This example shows the payload that’s sent to ENS when a customer clicks a quick reply button in a WhatsApp message.