Inbound Message
Incoming message
Response parameters
Field
Data type
Required
Description
id
String
Yes
Message ID
accountName
String
Yes
API account name
wabaId
String
Yes
Waba Id
wamid
String
Yes
Meta WhatsApp message ID
from
String
Yes
User phone number
to
String
Yes
Merchant phone number
sendTime
String
Yes
Send time, format: 2023-02-22T12:00:00.000Z
customerProfile
JSON
Yes
User information
type
String
Yes
Message type; text: text message reaction: emoji message image: image message audio: audio message video: video message sticker: sticker message unknown: unknown message location: location message contacts: contact message button: template button reply message interactive: interactive message/interactive button reply message order: order message system: user number change notification
text
JSON
No
Present when type=text
reaction
JSON
No
Present when type=reaction
image
JSON
No
Present when type=image
audio
JSON
No
Present when type=audio
video
JSON
No
Present when type=video
errors
JSON
No
Present when type=unknown
location
JSON
No
Present when type=location
contacts
JSON
No
Present when type=contacts
button
JSON
No
Present when type=button
system
JSON
No
Present when type=system
context
JSON
No
Context message, present when replying to a quoted message
text: reply example
Field
Data type
Required
Description
text.body
String
Yes
Indicates the content of the reply
reaction: reply example
Field
Data type
Required
Description
reaction.messageId
String
Yes
Indicates the wamid (original message id) of the quoted message
reaction.emoji
String
Yes
Indicates the emoji in the reply
sendTime
String
Yes
Indicates the time the customer sent the emoji
Field
Data type
Required
Description
image.caption
String
Yes
Media description or title
image.mimeType
String
Yes
Media format type: image/jpeg
image.sha256
String
Yes
Hash code of the media resource file
image.link
String
Yes
Download link for the media file
sticker: reply example
Field
Data type
Required
Description
sticker.mimeType
String
Yes
Sticker format type: image/webp
sticker.sha256
String
Yes
Hash code of the sticker resource file
sticker.link
String
Yes
Download link for the sticker file
video: reply example
Field
Data type
Required
Description
video.mimeType
String
Yes
Video format type: video/mp4
video.sha256
String
Yes
Hash code of the video resource file
video.link
String
Yes
Download link for the video file
Audio: reply example
Field
Data type
Required
Description
audio.mimeType
String
Yes
Audio format type: video/mp4
audio.sha256
String
Yes
Hash code of the audio resource file
audio.link
String
Yes
Download link for the audio file
Document: reply example
Field
Data type
Required
Description
document.mimeType
String
Yes
Document format type: video/mp4
document.sha256
String
Yes
Hash code of the document resource file
document.link
String
Yes
Download link for the document file
document.caption
String
Yes
Document description or title
document.filename
String
Yes
Document file name
Location: reply example
Field
Data type
Required
Description
location.latitude
String
Yes
Indicates latitude
location.longitude
String
Yes
Indicates longitude
location.name
String
Yes
Indicates the location name
location.address
String
Yes
Indicates the address
Contacts: reply example
Button: reply example
When the customer clicks a quick reply button in the interactive message template, the system will send a response. The following is an example callback format.
Field
Data type
Required
Description
context.from
String
Yes
The WhatsApp ID that sent the interactive message (the phone number without the "+" prefix)
context.id
String
Yes
It is the original message ID on the WhatsApp platform.
Unknown: reply example
You may receive an unknown message callback notification. For example, a customer may send you an unsupported message, such as a disappearing message (in this case, we notify the customer that the message type is unsupported).
Field
Data type
Required
Description
errors.code
String
Yes
Indicates the error code
errors.details
String
Yes
Indicates the error details
errors.title
String
Yes
Indicates the error name
Interactive: reply example
When the user clicksan item in the list message you sentyou will receive the following Webhooks notification:
Field
Data type
Required
Description
context.from
String
Yes
The WhatsApp ID that sent the interactive message (the phone number without the "+" prefix)
context.id
String
Yes
It is the original message ID on the WhatsApp platform.
When the user clicks thereply buttonyou will receive the following Webhooks notification:
最后更新于