Send Message
Send Poll
Início
Instances
Settings
Send Message
Chat Controller
Profile Settings
Group Controller
- POSTCreate Group
- POSTUpdate Group Picture
- POSTUpdate Group Subject
- POSTUpdate Group Description
- GETFetch Invite Code
- POSTRevoke Invite Code
- POSTSend Group Invite
- GETFind Group by Invite Code
- GETFind Group by JID
- GETFetch All Groups
- GETFind Group Members
- POSTUpdate Group Members
- POSTUpdate Group Setting
- POSTToggle Ephemeral
- DELLeave Group
Typebot
OpenAI
Evolution Bot
Dify
Flowise
Chatwoot
Websocket
RabbitMQ
Send Message
Send Poll
POST
/
message
/
sendPoll
/
{instance}
curl --request POST \
--url https://{server-url}/message/sendPoll/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"name": "<string>",
"selectableCount": 2,
"values": [
"<string>"
],
"delay": 123,
"quoted": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>",
"participant": "<string>"
},
"message": {
"conversation": "<string>"
}
},
"mentionsEveryOne": true,
"mentioned": [
"<string>"
]
}'
{
"key": {
"remoteJid": "553198296801@s.whatsapp.net",
"fromMe": true,
"id": "BAE53EC8D8E1FD8A"
},
"message": {
"messageContextInfo": {
"messageSecret": "lX/+cLHHNfnTTKZi+88mrhoyi6KNuUzWjgfaB0bTfOY="
},
"pollCreationMessage": {
"name": "Poll Name",
"options": [
{
"optionName": "Option 1"
},
{
"optionName": "Option 2"
},
{
"optionName": "Option 3"
}
],
"selectableOptionsCount": 1
}
},
"messageTimestamp": "1717781848",
"status": "PENDING"
}
Authorizations
Your authorization key header
Path Parameters
ID of the instance to connect
Body
application/json
Number to receive the message (with country code)
Name of the poll
How many options each person can select
Required range:
x > 1
Presence time in milliseconds before sending message
Mention everyone on a group message
Response
201 - application/json
Created
The message content, which may include various types of messages like text, images, poll creation, etc.
Information about the context of the message.
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.
The timestamp of the message, represented as a string.
The status of the message, such as sent, received, or pending.
curl --request POST \
--url https://{server-url}/message/sendPoll/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"name": "<string>",
"selectableCount": 2,
"values": [
"<string>"
],
"delay": 123,
"quoted": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>",
"participant": "<string>"
},
"message": {
"conversation": "<string>"
}
},
"mentionsEveryOne": true,
"mentioned": [
"<string>"
]
}'
{
"key": {
"remoteJid": "553198296801@s.whatsapp.net",
"fromMe": true,
"id": "BAE53EC8D8E1FD8A"
},
"message": {
"messageContextInfo": {
"messageSecret": "lX/+cLHHNfnTTKZi+88mrhoyi6KNuUzWjgfaB0bTfOY="
},
"pollCreationMessage": {
"name": "Poll Name",
"options": [
{
"optionName": "Option 1"
},
{
"optionName": "Option 2"
},
{
"optionName": "Option 3"
}
],
"selectableOptionsCount": 1
}
},
"messageTimestamp": "1717781848",
"status": "PENDING"
}