For the complete documentation index, see llms.txt. This page is also available as Markdown.

Inbound message

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 changed number notification

text

JSON

No

Has a value when type=text

reaction

JSON

No

Has a value when type=reaction

image

JSON

No

Has a value when type=image

audio

JSON

No

Has a value when type=audio

video

JSON

No

Has a value when type=video

errors

JSON

No

Has a value when type=unknown

location

JSON

No

Has a value when type=location

contacts

JSON

No

Has a value when type=contacts

button

JSON

No

Has a value when type=button

system

JSON

No

Has a value when type=system

context

JSON

No

Has a value for context messages when replying to a quoted message

Text message-text: reply example

Field
Data type
Required
Description

text.body

String

Yes

Indicates the replied content

Emoji message-reaction: reply example

Field
Data type
Required
Description

reaction.messageId

String

Yes

Indicates the wamid of the referenced message (original message ID)

reaction.emoji

String

Yes

Indicates the emoji used in the reply

sendTime

String

Yes

Indicates the time the customer sent the emoji

Image message-image: reply example

Field
Data type
Required
Description

image.id

String

Yes

Media asset ID

image.caption

String

No

Media description or title

image.mimeType

String

No

Media format type: image/jpeg

image.sha256

String

No

Media asset file hash

image.link

String

No

Download link for the media file

Sticker message-sticker: reply example

Field
Data type
Required
Description

sticker.id

String

Yes

Media asset ID

sticker.mimeType

String

No

Sticker format type: image/webp

sticker.sha256

String

No

Sticker asset file hash

sticker.link

String

No

Download link for the sticker file

Video message-video: reply example

Field
Data type
Required
Description

video.id

String

Yes

Media asset ID

video.mimeType

String

No

Video format type: video/mp4

video.sha256

String

No

Video asset file hash

video.link

String

No

Download link for the video file

Audio message-audio: reply example

Field
Data type
Required
Description

audio.id

String

Yes

Media asset ID

audio.mimeType

String

No

Audio format type: video/mp4

audio.sha256

String

No

Audio asset file hash

audio.link

String

No

Download link for the audio file

Document message-document: reply example

Field
Data type
Required
Description

document.id

String

Yes

Media asset ID

document.mimeType

String

No

Document format type: video/mp4

document.sha256

String

No

Document asset file hash

document.link

String

No

Download link for the document file

document.caption

String

No

Document description or title

document.filename

String

No

Document file name

Location message-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

Contact message-contact: reply example

Quick reply-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

Is the WhatsApp ID that sent the interactive message (phone number without the "+" prefix)

context.id

String

Yes

Is the original message ID on the WhatsApp platform.

Unknown message-unknown: reply example

You may receive callback notifications for unknown messages. For example, a customer may send you an unsupported message, such as a disappearing message (in this case, we will 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 error details

errors.title

String

Yes

Indicates the error name

Interactive message-interactive: reply example

When the user clicksone item in the list message you sentyou will receive the following webhook notification:

Field
Data type
Required
Description

context.from

String

Yes

Is the WhatsApp ID that sent the interactive message (phone number without the "+" prefix)

context.id

String

Yes

Is the original message ID on the WhatsApp platform.

When the user clicks thereply buttonyou will receive the following webhook notification:

最后更新于