curl --request POST \
--url https://api.wappfy.com.br/message/sendPoll/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"options": {
"delay": 123,
"presence": "composing"
},
"pollMessage": {
"name": "<string>",
"selectableCount": 2,
"values": [
"<string>"
]
}
}'
{
"key": {
"remoteJid": "559912345678@s.whatsapp.net",
"fromMe": true,
"id": "CBC2CDBAFA5C9"
},
"message": {
"messageContextInfo": {
"messageSecret": "lX/+cLHHNfnTTKZi+88mrhoyi6KNuUzWjgfaB0bTfOY="
},
"pollCreationMessage": {
"name": "Título da Enquete",
"options": [
{
"optionName": "Exemplo 1"
},
{
"optionName": "Exemplo 2"
},
{
"optionName": "Exemplo 3"
}
],
"selectableOptionsCount": 1
}
},
"messageTimestamp": "1720453008",
"status": "PENDING"
}
Enviar enquete
curl --request POST \
--url https://api.wappfy.com.br/message/sendPoll/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"options": {
"delay": 123,
"presence": "composing"
},
"pollMessage": {
"name": "<string>",
"selectableCount": 2,
"values": [
"<string>"
]
}
}'
{
"key": {
"remoteJid": "559912345678@s.whatsapp.net",
"fromMe": true,
"id": "CBC2CDBAFA5C9"
},
"message": {
"messageContextInfo": {
"messageSecret": "lX/+cLHHNfnTTKZi+88mrhoyi6KNuUzWjgfaB0bTfOY="
},
"pollCreationMessage": {
"name": "Título da Enquete",
"options": [
{
"optionName": "Exemplo 1"
},
{
"optionName": "Exemplo 2"
},
{
"optionName": "Exemplo 3"
}
],
"selectableOptionsCount": 1
}
},
"messageTimestamp": "1720453008",
"status": "PENDING"
}
Seu cabeçalho da chave de autorização.
ID da instância.
Criado
The response is of type object
.