Chat
Poll votes
Returns the aggregated votes and the per-voter breakdown of a poll
GET
Poll votes
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Description
Returns the votes for a poll sent by the instance. The response includes:- Aggregated by option (
votes[]), option name and total. - Detail vote by vote (
voteDetails[]), who voted, on which option, when.
optionHash is the SHA256(optionName) in uppercase, used by WhatsApp to anonymize votes in the protocol. Useful to correlate raw votes with their options.Example
Success response
The envelope bringsmessageId of the poll and the data object (PollResult) with the question in name, the aggregated count per option in votes, and the detailed vote list in voteDetails. Use votes[].optionVoteCount for per-option totals and voteDetails when you need to know who voted for what.
200 OK
Path parameters
Instance name.
Query params
ID of the poll message.
Headers
| Name | Required | Example | Description |
|---|---|---|---|
token | yes (or Authorization) | a1b2c3d4-... | TokenAccount or TokenInstance. |
Error responses
| HTTP | error.message | When it happens |
|---|---|---|
| 400 | Instance name is required | , |
| 400 | messageId query parameter is required | , |
| 401 | Invalid token | , |
| 404 | Instance not found | , |
| 404 | Poll not found | messageId does not correspond to a poll. |
Error 404
Related
Send poll
Create a poll.
Find message
Retrieve the original poll.