Skip to main content
Version: 2.0

Quick Reply Message

This message type provides the recipient with up to three buttons, which can be pressed. A button press causes a response to be sent back in a callback.

ObjectDescription
headerOptional.

For button interactive messages, you can use the following header types: text, video, image or document.

Once you select your type, add the corresponding objects/fields with more information:
- For video, image, and document types: Add a media object.
- For text type: Add a text field with the desired content.

Example:

bodyRequired.
footerOptional.
actionRequired.

You must add at least one button, and include type, title, and id for your buttons. You cannot add more than 3 buttons. Maximun of 20 characters for title. You cannot have leading or trailing spaces when setting the ID.

Payload

{
"recipient_type": "individual",
"to": "918892532751",
"type": "interactive",
"interactive": {
"type": "button",
"header": {
"type": "text",
"text": "hello "
},
"body": {
"text": "your-text-body-content"
},
"footer": {
"text": "your-text-footer-content"
},
"action": {
"buttons": [
{
"type": "reply",
"reply": {
"id": "id-1",
"title": "First Buttons Title"
}
},
{
"type": "reply",
"reply": {
"id": "id-2",
"title": "Second Buttons Title"
}
}
]
}
},
"metadata": {
"messageId": "xxxxx",
"transactionId": "xxxxx",
"callbackDlrUrl": "https:xxx.com",
}
}

Note : Callback URL is an optional parameter . Please use when you want to change the default URL(configured through smartta). It will only change the domain name other parameters will be same as configurated in smartta.
Additionally, messageId is also an optional parameter used for identification of the message and must not exceed 100 characters.