Messages

Send a poll

Send a poll over iMessage. Needs an iMessage conversation and a line that supports polls. Scope: comms_send.

post/polls

Request

  • Base URL: https://osis.co/api/v1/comms
  • URL: https://osis.co/api/v1/comms/polls
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Lets you retry safely. Wins over idempotency_key in the body.

Request body

OR
OR

Example request

{
  "to": "+12125550147",
  "contact_id": "ctc_01HZX",
  "conversation_id": "conv_01HZX",
  "question": "Where should we eat?",
  "options": [
    "Pizza",
    "Sushi",
    "Tacos"
  ],
  "default_country": "US"
}

Response

Already sent with this idempotency key. Returns the first result.

duplicateboolean

Changes

No recorded changes to this operation across all 1 revision of this API.