Skip to main content
POST
/
messages
/
poll
Enviar Enquete
curl --request POST \
  --url https://api.wapizap.com/api/v2/messages/poll \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "instanceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "to": "<string>",
  "question": "Qual sua cor preferida?",
  "options": [
    "Azul",
    "Verde",
    "Vermelho"
  ],
  "selectableCount": 1
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
instanceId
string<uuid>
required
to
string
required
question
string
required
Example:

"Qual sua cor preferida?"

options
string[]
required
Required array length: 2 - 12 elements
Example:
["Azul", "Verde", "Vermelho"]
selectableCount
integer
default:1
Required range: 1 <= x <= 10

Response

201

Enquete enviada