Skip to main content
Polls are posted as messages in a topic. When you create a poll, each option is stored with a server-generated 6-character ID. You use those IDs when submitting votes.

Create a Poll

The bot must be a member of the topic. A poll message is sent on behalf of the bot.
Response — 201 Created:
Save the id (the poll ID) and the options[].id values — you need them to submit votes.

Vote on a Poll

Use the poll id from the create response as the pollId path parameter, and one of the options[].id values as optionId.
Response — 201 Created:
Each {pollId, optionId, voter} combination is idempotent — re-submitting the same vote is a no-op.

Delete a Vote

Use the id from the vote creation response as voteId. Response — 204 No Content (empty body on success) 404 is returned if the vote is not found.

Request Fields

POST /v2/polls

POST /v2/polls//votes

Constraints

Webhook Events

Zenzap fires webhook events when votes are cast or retracted on polls in topics your bot is a member of: See Webhook Events for full payload details.