Mpwah icon

Mpwah

Interact with MPWAH WhatsApp Gateway API

Pesan → Send Button

AI-generated

Summary

Send a WhatsApp button message to a specified recipient, optionally including media attachment, footer text, and multiple interactive buttons of various types.

Inputs

  • Sender Device (From) — Select the sending device. If left empty, the device configured in the credentials will be used.
  • Recipient Number (To) (required) — WhatsApp number of the message recipient. Do not use '+', start with the country code instead (e.g., 628xxxxxxx).
  • Message Body (required) — The main text content of the button message.
  • Buttons (required) — A collection of button definitions where each button can be of type reply, URL, call, or copy, with associated display text and identifier relevant to its type.
  • Footer — Optional footer text to include below the buttons.
  • Media Source — Choose whether to attach an image or video to the button message; options are none, URL, or binary upload.
  • Media URL — If media source is URL, provide the full URL to the image or video to attach.
  • Binary Property — If media source is binary, specify the name of the binary property containing the media file.
  • Reply Message ID (Optional) — If provided, this sends the button message as a reply to the specific message ID; leave empty to send as a new message.

Output shape

a single item containing JSON with the API response indicating success or failure of the message send operation

The operation calls the Mpwah API endpoint /backend-send-button and returns its JSON response; no pagination or multiple items returned.

Examples

Example 1: Send a button message with three interactive buttons and an image from URL to a WhatsApp number

Set Recipient Number, Message Body, Footer text (optional), Buttons collection (e.g., Reply and URL types with their IDs), Media Source='URL', Media URL with image link, and optionally Reply Message ID.

Links

Discussion