Integrations
Status
Instances
Settings
Webhooks
Send Messages
Chat Management
- POSTCheck if WhatsApp
- PUTMark Message as Read
- PUTMark Chat as Unread
- PUTArchive Chat
- DELDelete Message for Everyone
- POSTSend Presence
- POSTFetch Profile Picture URL
- POSTFind Contacts
- POSTFind Chats
- POSTFind Messages
- POSTFind Status Message
- POSTFetch Base64 from Media Message
- PUTUpdate Message
- PUTUpdate Bot Status
Label Management
Profile Settings
Group Management
- POSTCreate Group
- PUTUpdate Group Picture
- PUTUpdate Group Subject
- PUTUpdate Group Description
- GETFetch Invite Code
- GETAccept Invite Code
- PUTRevoke Invite Code
- POSTSend Invite URL
- GETFind Group By Invite Code
- GETFind Group By JID
- GETFetch All Groups
- GETFind Participants
- PUTUpdate Group Participants
- PUTUpdate Group Settings
- PUTToggle Ephemeral Mode
- DELLeave Group
Send Messages
Send Poll
Enviar enquete
POST
/
message
/
sendPoll
/
{instance}
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"
}
Authorizations
Seu cabeçalho da chave de autorização.
Path Parameters
ID da instância.
Body
application/json
Response
201 - application/json
Criado
The response is of type object
.
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"
}