Send a poll
POST /v1/messages/poll — a poll the recipient can vote in.
Notes
questionis capped at 255 characters.optionsmust contain 2 to 10 options, each up to 100 characters.- Options must all be different. WhatsApp counts votes by the option’s text, so two identical options make the result impossible to read. Duplicates are rejected with
400 invalid_request. selectable_countis how many options one person may pick. It defaults to1and cannot exceed the number of options you sent.
Example
Authorizations
Your API key, sent in an apikey request header. Never in the URL, never as a Bearer token.
Body
Which of your connected numbers to send FROM. Copy it from your numbers screen in the portal, or from GET /v1/instances. It must belong to your account.
"3f9c1a2b-7d4e-4c81-9f0a-2b6d5e8c1a34"
The recipient, with country code and no leading zero — for example 919876543210. Spaces, dashes, brackets and a leading + are accepted and stripped; 6 to 15 digits must remain.
"919876543210"
The poll question. Up to 255 characters.
1 - 255"Which delivery slot suits you?"
2 to 10 options, each 1 to 100 characters. They must all be different — WhatsApp counts votes by option text, so duplicates make the result unreadable and are rejected.
2 - 10 elements100How many options one person may pick. Must be a whole number between 1 and the number of options you sent.
1 <= x <= 10Send this message as a reply, quoting an earlier one. Use the data.message_id returned by a previous send.
128"3EB0C1D2F4A5B6C7D8E9"
Set true when the quoted message is one you sent from this number. Only valid together with quoted_message_id.