Skip to main content
GET
Poll votes
Auth: TokenAccount or TokenInstanceRate-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 brings messageId 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

string
required
Instance name.

Query params

string
required
ID of the poll message.

Headers

Error responses

Error 404

Send poll

Create a poll.

Find message

Retrieve the original poll.