Skip to main content

WabaInteractiveBtnURL

Requirement

To send this type of (just like Reply) message, you must first establish a Conversation room with the recipient. In other word, your recipient must sent a message to your gateway.

Introduction

If you wish to send an interactive call-to-action (CTA) URL button, use Interactive Button URL.

Json Request Components

  • header: Available types: text, document, image, and video
    optional
    Example:

    • text: {"type": "text", "text": "Your Text Header"}
    • document: {"type": "document", "link": "<DOCUMENT URL>"}
    • image: {"type": "image", "link": "<IMAGE URL>"}
    • video: {"type": "video", "link": "<VIDEO URL>"}

    Media extensions

    • document: pdf, doc, docs, ppt, pptx, txt, xls and xlsx
    • image: jpeg and png
    • image: 3gp and mp4
  • body: Message text body
    required, max 1024 characters

  • footer: Foot note message
    optional, max 60 characters

  • button: The URL button

    • title: Button label text
      max 20 characters
    • url: The URL
Example
{
"gateway_id": "YOUR_GATEWAY_ID",
"recipient": "RECIPIENT_NUMBER",
"header": {
"type": "image",
"link": "https://api-doc.nusasms.com/slate/img/logo.png"
},
"body": {
"text": "Tab button below if you wish to access the documentation"
},
"footer": {
"text": "Happy coding"
},
"button": {
"text": "API Documentation",
"url": "https://api-doc.nusasms.com"
}
}

Preview

Here is the preview when you got this type of message.

Received Message

Message preview

Send Reply on Click / Touch

On click/touch