Pollsv2
Get poll results
GET
/chats/{chatId}/polls/{pollId}Retrieve a poll's definition and aggregated vote counts. The pollId is the poll_id returned in the poll.received or poll.created webhook event.
Path parameters
chatIdRequiredstringChat identifier. Can be: (1) phone number in E.164 format (e.g., +15551234567), (2) email address, (3) group ID (grp_xxxx), or (4) comma-separated list of phone numbers/emails for multi-recipient group chats (e.g., +15551234567,+15559876543). All values should be URL-encoded.
pollIdRequiredstringThe poll ID
Headers
AuthorizationRequiredstringYour API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.
Bearer
Returns
poll_idoptionalstringchat_idoptionalstringtitleoptionalstringoptionsoptionalobject[]
optionsoptionalobject[]Array of object
textoptionalstringvotesoptionalintegertotal_votesoptionalintegerResponse codes
200Poll results
400Invalid request parameters
401Authentication required or invalid
404Resource not found
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X GET https://api.blooio.com/v2/api/chats/chat_a1b2c3d4/polls/poll_a1b2c3d4 \ -H "Authorization: Bearer bl_live_..."{ "poll_id": "poll_a1b2c3d4", "chat_id": "chat_a1b2c3d4", "title": "Example title", "options": [ { "text": "Hello from Blooio!", "votes": 0 } ], "total_votes": 3}