WhatsApp Reply Buttons

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": "",
  "notifyurlAuthId": "TNPBXKT09U" //Optional.
}
Parameter / ObjectParameters within an objectMandatoryDescription
type
replyYesSpecifies the message type.
header
textYesContains the text for the header. Maximum of 60 characters is supported for text.
imageYesContains the URL of the image
videoYesContains the URL of the video
documentYesContains the URL of the document
bodytextYesBody of the message. Maximum of 1024 characters is supported.
footertextOptionalContains the footer text message.
action
buttonYesA button field with your button’s content.
typeYes
idYesA unique identification number for the button
titleYesA title for the button

📘

Note

It is recommended to use a valid authorization ID; the failure of notification won’t be logged in Debug Logs.

The notify URL should be filled with the proper URL format; otherwise, it would be considered an invalid URL.

The notify URL should be provided with proper spacing of the URL; when space is provided in front of the URL or at the end of the URL, it would be considered an invalid URL.

Error Codes

Refer to the Apple Messages for Business section.

Language
URL
Click Try It! to start a request and see the response here!