Send Messages
Send Poll
Integrations
Status
Instances
Settings
Webhooks
Send Messages
Chat Management
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
Número para receber mensagens (com número do país)
Response
201 - application/json
Criado
O conteúdo da mensagem, que pode incluir vários tipos de mensagens, como texto, imagens, criação de enquetes, etc.
Informação sobre o contexto da mensagem.
The secret of the message context.
Details of the poll creation message.
The name of the poll.
The options available in the poll.
The name of the poll option.
The number of options that can be selected in the poll.
O timestamp da mensagem, representado como uma string.
O status da mensagem, como enviado, recebido ou pendente.
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"
}