Pular para o conteúdo principal
POST
/
message
/
sendPoll
/
{instanceName}
Send Poll
curl --request POST \
  --url http://localhost:8080/message/sendPoll/{instanceName} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "number": "<string>",
  "name": "<string>",
  "selectableCount": 123,
  "values": [
    "<string>"
  ]
}
'
{
  "key": {},
  "message": {},
  "status": "<string>"
}

Autorizações

apikey
string
header
obrigatório

API Key for authentication (global or instance-specific)

Parâmetros de caminho

instanceName
string
obrigatório

WhatsApp instance name

Exemplo:

"my-instance"

Corpo

application/json
number
string
obrigatório
name
string
obrigatório
selectableCount
integer
obrigatório
values
string[]
obrigatório

Resposta

Poll sent

key
object
message
object
status
string