Parameter/Field Descriptions for Inbound Messages

The following sections contain different object parameters and field descriptions to be used for the Inbound messages.

As shown in the examples contained within this document, notifications of received messages are contained within a messages object. The tables in this section describe the fields in the inbound notifications.

NameDescriptionType
contactsContacts ObjectArray of Contact profile information
messagesMessages ObjectArray of any type of message objects

The Contacts Object

The contacts object provides all the information about the contact.

Note: This object only applies to text, contacts, and location messages. It is not currently supported for media messages and not applicable for system messages.

NameDescriptionType
profileAs of v2.21.4, contains the sender's profile information.Profile object
wa_idThe WhatsApp ID of the contactString

The Profile Object

NameDescriptionType
nameOptional. As of v2.21.4, contains the sender's profile name.String

The Messages Object

The messages object provides all of the information about the incoming message.

NameDescriptionType
contextOptional. This object will only be included when someone replies to one of your messages. Contains information about the content of the original message, such as the ID of the sender and the ID of the message.String
fromWhatsApp ID of the senderString
idMessage IDString
timestampMessage received timestampString
type

Message type

Supported values are: audio, contacts, document, image, location, text, unknown, video, and voice

String
message_objectsMessage contents

Array of audio, contacts, document, image, location, system, text, video, and voice objects.
type: Message type objects that provide more information about the received message.

See the media object fields for more information.

systemNotifications of changes to the systemSystem Object
referralThis object is present when the user clicks on an ad that Clicks to WhatsApp and sends a message to the businessReferral object
interactiveThis object is present for notifications related to interactive messagesInteractive object

The Interactive Object

An interactive object is found in Webhooks related to interactive messages, including List Messages and Reply Button.

NameDescriptionType
type

Required for list_reply.

Supported values:
  • list_reply for List Messages
  • button_reply for Reply Button Messages
String
list_replyUsed to notify you when customers are replying to List Messages.

Object

Contains the following information about the rows selected by the customer: id, title, and description.

button_replyUsed to notify you when customers are replying to Quick Reply Messages.

Object

Contains the following information about the button clicked by the customer: id and title.

The Referral Object

Included in notifications when a user clicks on an ad that clicks to WhatsApp and sends a message to the business. This object has the ad's information.

NameDescriptionType
headlineThe headline used in the ad that generated the message.String
bodyThe Body from the ad that generated the message.String
source_typeThe type of the ad’s source. Currently, supported values are ad and post.String
source_idThe Facebook ID for an ad or a post.String
source_urlThe url that leads to the ad. Opening this url takes you to the ad viewed by your user.String

The System Object

Notifications of changes to the system are sent in the system object.

NameDescriptionType
bodySystem event message.String

The Context Object

A context object is found in messages where someone has replied to your message. Its purpose is to provide you with a context for the reply.

NameDescriptionType
fromWhatsApp ID of the sender of the original messageString
idMessage ID of original messageString

The Text Object

When the notification describes a text message, the text object provides the body of the text message.

NameDescriptionType
bodyMessage textString

The Location Object

When you receive a notification of a user's static location, the location object provides the details of the location.

NameDescriptionType
latitudeLatitude of location being sentNumber
longitudeLongitude of location being sentNumber
addressAddress of the locationString
nameName of the locationString
urlURL for the website where the user downloaded the location informationString
❗️

Inbound messages of type live location are not currently supported.

The Contacts Object

Beginning with v2.21.3, when you receive a notification of a user's contact information, the contacts object provides the contact information details.

Note: This field is different from the contacts object listed above.

NameDescriptionType
addressesFull contact address(es). Each address can contain street, city, state, zip, country, country_code, and type fields.Array
birthdayContact's birthdayYYYY-MMDD formatted string
contact_imageBas64-encoded contact image in JPEG formatBase64-encoded image
emailsContact email address(es). Each emails object can contains email and type fields.Array
imsMessaging contact information. Each ims object contains service and user_id fields.Array
nameFull contact name. Each name object can contain first_name, middle_name, last_name, formatted_name, name-prefix, and name_suffix fields.Array
orgContact organization information. Each org object can contain company, department, and title fields.Array
phonesContact phone number(s). Each phones object can contain phone, wa_id, and type fields.Array
urlsContact URL(s). Each urls object can contain url and type fields.Array

The Media (image | document | audio | video | voice | sticker) Objects

When a message with media is received, the WhatsApp Business API client will download the media. Once the media is downloaded, a notification is sent to your Webhook. This message contains information that identifies the media object and enables you to find and download the object.

NameDescriptionType
captionOptional (Only present if specified)String
file (This parameter is deprecated)Absolute filename and location on media volumeString
filenameFilename on the sender's device This will only be present in audio and document media messagesString
idID of the media can be used to delete the media if stored locally on the clientString
metadataMetadata pertaining to sticker mediaMetadata object
mime_typeMime type of the mediaString
sha256ChecksumString

The Order Object

An order object is found in webhooks related to Multi and Single Product Messages. This object contains the following components:

NameDescription
catalog_idID of the catalog that contains the products listed under product_items section.
product_itemsArray of product items.
textText message sent along with the order.

The product_items Object

A product_item object is found in webhooks related to Multi-Product Messages. This object contains the following components:

NameDescription
product_retailer_idUnique identifier (in the catalog) of the product.
quantityNumber of items purchased.
item_priceUnitary price of the items.
currencyCurrency of the price.