Send a poll
send_pollSend a WhatsApp poll with 2 to 12 options to a chat, contact, or group. Track responses through poll.voted webhooks and the message's poll tally.
Instructions
Send a poll with 2 to 12 options. Votes arrive as poll.voted webhooks and in the message's poll tally (get_message).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient: a phone number in E.164 with + (`+584241112233`), `lid:<digits>`, the `@username` of a contact the account already chats with, a group id (`...@g.us`), or a channel id (`...@newsletter`) the account administers. | |
| options | Yes | 2 to 12 unique options. | |
| mentions | No | Contact ids to @mention (E.164 or `lid:<digits>`). | |
| question | Yes | The poll question. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| idempotencyKey | No | Optional. Reuse the same key when retrying this exact call: within 24 hours wuapi returns the first result instead of doing it twice. | |
| selectableCount | No | How many options a voter may pick. 0 (default) means any number; 1 makes it single choice. | |
| replyToMessageId | No | A wuapi message id in the same chat to quote (reply to). |