Pollsv4
Send a poll
POST
/chats/{chatId}/pollsSends a native iMessage poll to a chat. Requires a title and 2+ options. Blooio channels only.
Path parameters
chatIdRequiredstringUnique identifier of the chat, prefixed with chat_. Returned by the List chats endpoint.
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
Body parameters
JSONtitleRequiredstringoptionsRequiredstring[]Returns
dataoptionalPoll
dataoptionalPollidoptionalstringchat_idoptionalstringchannel_idoptionalstringchannel_typeoptionalstring"blooio""twilio""whatsapp""whatsapp_business""rcs_business""amb"typeoptionalstring"poll"statusoptionalstringpolloptionalobject
polloptionalobjecttitleoptionalstringoptionsoptionalstring[]Response codes
201Poll queued
401Your API key is missing or invalid. Pass it as a bearer token.
404No poll was found with the provided `chatId`.
409The request conflicts with the current state of the poll (e.g. it already exists, the chat is closed, or the channel isn't active).
422Validation failed — one or more fields in the request are invalid or missing.
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X POST https://api.blooio.com/v4/chats/chat_a1b2c3d4/polls \ -H "Authorization: Bearer bl_live_..." \ -H "Content-Type: application/json" \ -d '{ "title": "Example title", "options": [ "string" ] }'{ "data": { "id": "poll_a1b2c3d4", "chat_id": "chat_a1b2c3d4", "channel_id": "ch_a1b2c3d4", "channel_type": "blooio", "type": "poll", "status": "active", "poll": { "title": "Example title", "options": [ "string" ] } }}