Mpwah icon

Mpwah

Interact with MPWAH WhatsApp Gateway API

Pesan → Send Poll

AI-generated

Summary

Send a poll message via WhatsApp to a specified recipient number using the Mpwah API.

Inputs

  • Sender Device (From) — Select the sending device. If left empty, the device specified in the credential is used.
  • Recipient Number (To) (required) — Target WhatsApp number to receive the poll, entered without the '+' sign and including the country code.
  • Poll Name (required) — Set the name/title of the poll to send.
  • Poll Options (required) — Provide the poll choices as a comma-separated string.
  • Countable — Indicates whether the poll is countable (true or false). Defaults to true.
  • Reply Message ID (Optional) — Provide the ID of a message to reply to; leave empty to send as a new message.

Output shape

a list containing a single item with JSON data representing the API response indicating success status and context about the sent poll message.

The response includes smart context such as sender information and message metadata. Errors during sending may be returned if 'Continue On Fail' is enabled.

Examples

Example 1: Sending a poll asking user preferences

Specify recipient number, poll name, and comma-separated options; optionally select sender device and reply message ID.

Links

Discussion