Enviar enquete
Envia uma enquete com uma pergunta e uma lista de opções; requer no mínimo duas opções.
curl --request POST \
--url https://pilotstatus.com.br/api/layer/evolution-go/send/poll \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"number": "5511999999999",
"question": "Best day for the meeting?",
"options": [
"Monday",
"Tuesday",
"Wednesday"
],
"maxAnswer": 1,
"id": "<string>",
"delay": 123,
"mentionedJid": "<string>",
"mentionAll": true,
"formatJid": true,
"quoted": {}
}
'import requests
url = "https://pilotstatus.com.br/api/layer/evolution-go/send/poll"
payload = {
"number": "5511999999999",
"question": "Best day for the meeting?",
"options": ["Monday", "Tuesday", "Wednesday"],
"maxAnswer": 1,
"id": "<string>",
"delay": 123,
"mentionedJid": "<string>",
"mentionAll": True,
"formatJid": True,
"quoted": {}
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
number: '5511999999999',
question: 'Best day for the meeting?',
options: ['Monday', 'Tuesday', 'Wednesday'],
maxAnswer: 1,
id: '<string>',
delay: 123,
mentionedJid: '<string>',
mentionAll: true,
formatJid: true,
quoted: {}
})
};
fetch('https://pilotstatus.com.br/api/layer/evolution-go/send/poll', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pilotstatus.com.br/api/layer/evolution-go/send/poll",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'number' => '5511999999999',
'question' => 'Best day for the meeting?',
'options' => [
'Monday',
'Tuesday',
'Wednesday'
],
'maxAnswer' => 1,
'id' => '<string>',
'delay' => 123,
'mentionedJid' => '<string>',
'mentionAll' => true,
'formatJid' => true,
'quoted' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/api/layer/evolution-go/send/poll"
payload := strings.NewReader("{\n \"number\": \"5511999999999\",\n \"question\": \"Best day for the meeting?\",\n \"options\": [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\"\n ],\n \"maxAnswer\": 1,\n \"id\": \"<string>\",\n \"delay\": 123,\n \"mentionedJid\": \"<string>\",\n \"mentionAll\": true,\n \"formatJid\": true,\n \"quoted\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pilotstatus.com.br/api/layer/evolution-go/send/poll")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"number\": \"5511999999999\",\n \"question\": \"Best day for the meeting?\",\n \"options\": [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\"\n ],\n \"maxAnswer\": 1,\n \"id\": \"<string>\",\n \"delay\": 123,\n \"mentionedJid\": \"<string>\",\n \"mentionAll\": true,\n \"formatJid\": true,\n \"quoted\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/api/layer/evolution-go/send/poll")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"number\": \"5511999999999\",\n \"question\": \"Best day for the meeting?\",\n \"options\": [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\"\n ],\n \"maxAnswer\": 1,\n \"id\": \"<string>\",\n \"delay\": 123,\n \"mentionedJid\": \"<string>\",\n \"mentionAll\": true,\n \"formatJid\": true,\n \"quoted\": {}\n}"
response = http.request(request)
puts response.read_body{
"message": "success",
"data": {
"Info": {
"Chat": "5511999999999@s.whatsapp.net",
"Sender": "5511888888888:23@s.whatsapp.net",
"IsFromMe": true,
"IsGroup": false,
"AddressingMode": "",
"SenderAlt": "",
"RecipientAlt": "",
"BroadcastListOwner": "",
"BroadcastRecipients": null,
"ID": "3EB0C767D26A1D8A3C2B",
"ServerID": 0,
"Type": "PollCreationMessage",
"PushName": "",
"Timestamp": "2026-07-10T13:45:30Z",
"Category": "",
"Multicast": false,
"MediaType": "",
"Edit": "",
"MsgBotInfo": {
"EditType": "",
"EditTargetID": "",
"EditSenderTimestampMS": "0001-01-01T00:00:00Z"
},
"MsgMetaInfo": {
"TargetID": "",
"TargetSender": "",
"TargetChat": "",
"DeprecatedLIDSession": null,
"ThreadMessageID": "",
"ThreadMessageSenderJID": ""
},
"VerifiedName": null,
"DeviceSentMeta": null
},
"Message": {
"pollCreationMessage": {
"name": "What is your favorite color?",
"options": [
{
"optionName": "Red"
},
{
"optionName": "Blue"
},
{
"optionName": "Green"
}
],
"selectableOptionsCount": 1,
"contextInfo": {}
}
},
"MessageContextInfo": {
"stanzaID": "",
"participant": "",
"quotedMessage": {
"conversation": ""
}
}
}
}{
"status": 400,
"error": "Bad Request",
"message": "Invalid payload"
}Autorizações
Your Pilot Status API key (ps_...). Evolution GO also accepts Authorization: Bearer <key>.
Corpo
MSISDN ou JID do destinatário.
"5511999999999"
Pergunta da enquete.
"Best day for the meeting?"
Opções de resposta (mínimo 2).
["Monday", "Tuesday", "Wednesday"]
Número máximo de opções que um votante pode selecionar (1 = escolha única).
1
Identificador de mensagem fornecido pelo cliente.
Milissegundos a aguardar antes de enviar.
JID(s) a mencionar.
Menciona todos os participantes (grupos).
Formata automaticamente number em um JID (padrão true).
Referência de resposta: { "messageId", "participant" }.
Resposta
Sucesso — corpo de resposta nativo do provedor.
Standard Evolution GO send envelope (gin.H). The passthrough layer returns this native body verbatim.
Esta página foi útil?
curl --request POST \
--url https://pilotstatus.com.br/api/layer/evolution-go/send/poll \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"number": "5511999999999",
"question": "Best day for the meeting?",
"options": [
"Monday",
"Tuesday",
"Wednesday"
],
"maxAnswer": 1,
"id": "<string>",
"delay": 123,
"mentionedJid": "<string>",
"mentionAll": true,
"formatJid": true,
"quoted": {}
}
'import requests
url = "https://pilotstatus.com.br/api/layer/evolution-go/send/poll"
payload = {
"number": "5511999999999",
"question": "Best day for the meeting?",
"options": ["Monday", "Tuesday", "Wednesday"],
"maxAnswer": 1,
"id": "<string>",
"delay": 123,
"mentionedJid": "<string>",
"mentionAll": True,
"formatJid": True,
"quoted": {}
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
number: '5511999999999',
question: 'Best day for the meeting?',
options: ['Monday', 'Tuesday', 'Wednesday'],
maxAnswer: 1,
id: '<string>',
delay: 123,
mentionedJid: '<string>',
mentionAll: true,
formatJid: true,
quoted: {}
})
};
fetch('https://pilotstatus.com.br/api/layer/evolution-go/send/poll', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pilotstatus.com.br/api/layer/evolution-go/send/poll",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'number' => '5511999999999',
'question' => 'Best day for the meeting?',
'options' => [
'Monday',
'Tuesday',
'Wednesday'
],
'maxAnswer' => 1,
'id' => '<string>',
'delay' => 123,
'mentionedJid' => '<string>',
'mentionAll' => true,
'formatJid' => true,
'quoted' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/api/layer/evolution-go/send/poll"
payload := strings.NewReader("{\n \"number\": \"5511999999999\",\n \"question\": \"Best day for the meeting?\",\n \"options\": [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\"\n ],\n \"maxAnswer\": 1,\n \"id\": \"<string>\",\n \"delay\": 123,\n \"mentionedJid\": \"<string>\",\n \"mentionAll\": true,\n \"formatJid\": true,\n \"quoted\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pilotstatus.com.br/api/layer/evolution-go/send/poll")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"number\": \"5511999999999\",\n \"question\": \"Best day for the meeting?\",\n \"options\": [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\"\n ],\n \"maxAnswer\": 1,\n \"id\": \"<string>\",\n \"delay\": 123,\n \"mentionedJid\": \"<string>\",\n \"mentionAll\": true,\n \"formatJid\": true,\n \"quoted\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/api/layer/evolution-go/send/poll")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"number\": \"5511999999999\",\n \"question\": \"Best day for the meeting?\",\n \"options\": [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\"\n ],\n \"maxAnswer\": 1,\n \"id\": \"<string>\",\n \"delay\": 123,\n \"mentionedJid\": \"<string>\",\n \"mentionAll\": true,\n \"formatJid\": true,\n \"quoted\": {}\n}"
response = http.request(request)
puts response.read_body{
"message": "success",
"data": {
"Info": {
"Chat": "5511999999999@s.whatsapp.net",
"Sender": "5511888888888:23@s.whatsapp.net",
"IsFromMe": true,
"IsGroup": false,
"AddressingMode": "",
"SenderAlt": "",
"RecipientAlt": "",
"BroadcastListOwner": "",
"BroadcastRecipients": null,
"ID": "3EB0C767D26A1D8A3C2B",
"ServerID": 0,
"Type": "PollCreationMessage",
"PushName": "",
"Timestamp": "2026-07-10T13:45:30Z",
"Category": "",
"Multicast": false,
"MediaType": "",
"Edit": "",
"MsgBotInfo": {
"EditType": "",
"EditTargetID": "",
"EditSenderTimestampMS": "0001-01-01T00:00:00Z"
},
"MsgMetaInfo": {
"TargetID": "",
"TargetSender": "",
"TargetChat": "",
"DeprecatedLIDSession": null,
"ThreadMessageID": "",
"ThreadMessageSenderJID": ""
},
"VerifiedName": null,
"DeviceSentMeta": null
},
"Message": {
"pollCreationMessage": {
"name": "What is your favorite color?",
"options": [
{
"optionName": "Red"
},
{
"optionName": "Blue"
},
{
"optionName": "Green"
}
],
"selectableOptionsCount": 1,
"contextInfo": {}
}
},
"MessageContextInfo": {
"stanzaID": "",
"participant": "",
"quotedMessage": {
"conversation": ""
}
}
}
}{
"status": 400,
"error": "Bad Request",
"message": "Invalid payload"
}