post https://{YourRegion}.webexconnect.io/resources/v1/messaging/
Reply Buttons Message includes up to 3 options —each option is a button. This type of message offers a quicker way for users to make a selection from a menu when interacting with a business. Reply buttons have the same user experience as interactive templates with buttons. Note: Modify YourRegion in the URL to the right to reflect your tenant’s region. See Know your endpoint page.
WhatsApp Reply buttons -Video/Image
{
"deliverychannel":"whatsapp",
"appid":"<WAAppid>",
"destination":[
{
"waid":[
"<waid>"
]
}
],
"channels": {
"OTT-Messaging": {
"wa": {
"type": "reply",
"reply": {
"header": {
"type": "text/document/video/image",
"text": "Reply button your text",//OR//
"document": {
"url": "http://www.africau.edu/images/default/sample.pdf",
"provider": {
"name": "provider-name"
},
"filename": "some-file-name"
},//OR//
"video": {
"url": "https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4",
"provider": {
"name": "provider-name"
}
},//OR//
"image": {
"url": "https://4.img-dpreview.com/files/p/E~TS590x0~articles/3925134721/0266554465.jpeg",
"provider": {
"name": "provider-name"
}
}
},
"body": {
"text": "Body text mssage"
},
"footer": {
"text": "Footer text message"
},
"action": {
"buttons": [
{
"type": "reply",
"reply": {
"id": "ButtonId1",
"title": "First Button"
}
},
{
"type": "reply",
"reply": {
"id": "ButtonId2",
"title": "Secound Button"
}
},
{
"type": "reply",
"reply": {
"id": "ButtonId3",
"title": "Third Button"
}
}
]
}
}
}
}
},
"correlationid": "",
"callbackData": "",
"notifyurl": ""
}
Parameter / Object | Parameters within an object | Mandatory | Description |
---|---|---|---|
type | |||
reply | Yes | Specifies the message type. | |
header | |||
text | Yes | Contains the text for the header. Maximum of 60 characters is supported for text. | |
image | Yes | Contains the URL of the image | |
video | Yes | Contains the URL of the video | |
document | Yes | Contains the URL of the document | |
body | text | Yes | Body of the message. Maximum of 1024 characters is supported. |
footer | text | Optional | Contains the footer text message. |
action | |||
button | Yes | A button field with your button’s content. | |
type | Yes | ||
id | Yes | A unique identification number for the button | |
title | Yes | A title for the button |
Error Codes
Refer to the below page https://developers.imiconnect.io/reference/channel-specific-status-codes-1#whatsapp