Lewati ke konten utama

Kirim pesan Interaktif Tombol URL

POST 

/nusasms_api/1.0/wa_business/interactive/button_url

Syarat Penggunaan

Untuk mengirim tipe pesan ini (seperti tipe reply / balasan), harus sudah ada Conversation room (percakapan) antara akun Whatsapp (Gateway) dengan si penerima pesan.

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

Request

Responses

Successful Response