Pollsv4
Get poll results
GET
/chats/{chatId}/polls/{pollId}Path parameters
chatIdRequiredstringUnique identifier of the chat, prefixed with chat_. Returned by the List chats endpoint.
pollIdRequiredstringUnique identifier of the poll, prefixed with msg_ (a poll shares the id of its underlying message).
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
dataoptionalPollResults
dataoptionalPollResultspoll_idoptionalstringchat_idoptionalstringtitleoptionalstringoptionsoptionalobject[]
optionsoptionalobject[]Array of object
textoptionalstringvotesoptionalintegertotal_votesoptionalintegerResponse codes
200Poll results
401Your API key is missing or invalid. Pass it as a bearer token.
404No poll was found with the provided `chatId`.
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/v4/chats/chat_a1b2c3d4/polls/poll_a1b2c3d4 \ -H "Authorization: Bearer bl_live_..."{ "data": { "poll_id": "poll_a1b2c3d4", "chat_id": "chat_a1b2c3d4", "title": "Example title", "options": [ { "text": "Hello from Blooio!", "votes": 0 } ], "total_votes": 3 }}