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​

Pesan interaktif tombol URL membantu untuk mengirim pesan yang melampirkan URL dengan tampilan yang ramah.

Komponen Request Json​

  • header: Tipe yang tersedia: text, document, image, dan video
    optsonal
    Contoh:

    • 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>"}

    Ekstensi berkas media

    • document: pdf, doc, docs, ppt, pptx, txt, xls contoh xlsx
    • image: jpeg dan png
    • image: 3gp dan mp4
  • body: Teks badan pesan
    wajib, max 1024 karakter

  • footer: Catatan/teks kaki
    opsional, max 60 karakter

  • button: Tombol URL-nya

    • title: Label/teks tombol
      max 20 karakter
    • url: URL-nya
Contoh
{
"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"
}
}

Pratinjau​

Pratinjau tampilan pesan.

Pesan Diterima​

Tampilan pesan

Tombol Disentuh / Diklik​

On click/touch

Request​

Responses​

Successful Response