Enviar botões interativos
Envia uma mensagem interativa com botões clicáveis; o comportamento de cada botão é definido por item via type (reply, url, call, copy, etc.).
curl --request POST \
--url https://pilotstatus.com.br/api/layer/evolution-go/send/button \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"number": "5511999999999",
"title": "Order #123",
"description": "Your order is ready.",
"buttons": [
{
"type": "reply",
"displayText": "Confirm",
"id": "confirm_1"
},
{
"type": "url",
"displayText": "Track",
"url": "https://track.example.com/123"
}
],
"footer": "Pilot Status",
"imageUrl": "<string>",
"id": "<string>",
"delay": 123,
"mentionedJid": "<string>",
"mentionAll": true,
"formatJid": true,
"quoted": {}
}
'import requests
url = "https://pilotstatus.com.br/api/layer/evolution-go/send/button"
payload = {
"number": "5511999999999",
"title": "Order #123",
"description": "Your order is ready.",
"buttons": [
{
"type": "reply",
"displayText": "Confirm",
"id": "confirm_1"
},
{
"type": "url",
"displayText": "Track",
"url": "https://track.example.com/123"
}
],
"footer": "Pilot Status",
"imageUrl": "<string>",
"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',
title: 'Order #123',
description: 'Your order is ready.',
buttons: [
{type: 'reply', displayText: 'Confirm', id: 'confirm_1'},
{type: 'url', displayText: 'Track', url: 'https://track.example.com/123'}
],
footer: 'Pilot Status',
imageUrl: '<string>',
id: '<string>',
delay: 123,
mentionedJid: '<string>',
mentionAll: true,
formatJid: true,
quoted: {}
})
};
fetch('https://pilotstatus.com.br/api/layer/evolution-go/send/button', 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/button",
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',
'title' => 'Order #123',
'description' => 'Your order is ready.',
'buttons' => [
[
'type' => 'reply',
'displayText' => 'Confirm',
'id' => 'confirm_1'
],
[
'type' => 'url',
'displayText' => 'Track',
'url' => 'https://track.example.com/123'
]
],
'footer' => 'Pilot Status',
'imageUrl' => '<string>',
'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/button"
payload := strings.NewReader("{\n \"number\": \"5511999999999\",\n \"title\": \"Order #123\",\n \"description\": \"Your order is ready.\",\n \"buttons\": [\n {\n \"type\": \"reply\",\n \"displayText\": \"Confirm\",\n \"id\": \"confirm_1\"\n },\n {\n \"type\": \"url\",\n \"displayText\": \"Track\",\n \"url\": \"https://track.example.com/123\"\n }\n ],\n \"footer\": \"Pilot Status\",\n \"imageUrl\": \"<string>\",\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/button")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"number\": \"5511999999999\",\n \"title\": \"Order #123\",\n \"description\": \"Your order is ready.\",\n \"buttons\": [\n {\n \"type\": \"reply\",\n \"displayText\": \"Confirm\",\n \"id\": \"confirm_1\"\n },\n {\n \"type\": \"url\",\n \"displayText\": \"Track\",\n \"url\": \"https://track.example.com/123\"\n }\n ],\n \"footer\": \"Pilot Status\",\n \"imageUrl\": \"<string>\",\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/button")
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 \"title\": \"Order #123\",\n \"description\": \"Your order is ready.\",\n \"buttons\": [\n {\n \"type\": \"reply\",\n \"displayText\": \"Confirm\",\n \"id\": \"confirm_1\"\n },\n {\n \"type\": \"url\",\n \"displayText\": \"Track\",\n \"url\": \"https://track.example.com/123\"\n }\n ],\n \"footer\": \"Pilot Status\",\n \"imageUrl\": \"<string>\",\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": "ButtonMessage",
"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": {
"interactiveMessage": {
"header": {
"title": "Menu"
},
"body": {
"text": "Choose an option"
},
"footer": {
"text": "Pilot Status"
},
"InteractiveMessage": {
"NativeFlowMessage": {
"buttons": [
{
"name": "quick_reply",
"buttonParamsJSON": "{\"display_text\":\"Yes\",\"id\":\"btn-yes\"}"
},
{
"name": "cta_url",
"buttonParamsJSON": "{\"display_text\":\"Visit site\",\"url\":\"https://pilotstatus.com.br\",\"merchant_url\":\"https://pilotstatus.com.br\"}"
}
]
}
}
}
},
"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"
Texto do cabeçalho/título.
"Order #123"
Texto do corpo.
"Your order is ready."
Objetos de botão: { type, displayText, id, url, phoneNumber, copyCode, currency, name, keyType, key }.
[
{
"type": "reply",
"displayText": "Confirm",
"id": "confirm_1"
},
{
"type": "url",
"displayText": "Track",
"url": "https://track.example.com/123"
}
]
Texto do rodapé.
"Pilot Status"
URL da imagem do cabeçalho.
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/button \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"number": "5511999999999",
"title": "Order #123",
"description": "Your order is ready.",
"buttons": [
{
"type": "reply",
"displayText": "Confirm",
"id": "confirm_1"
},
{
"type": "url",
"displayText": "Track",
"url": "https://track.example.com/123"
}
],
"footer": "Pilot Status",
"imageUrl": "<string>",
"id": "<string>",
"delay": 123,
"mentionedJid": "<string>",
"mentionAll": true,
"formatJid": true,
"quoted": {}
}
'import requests
url = "https://pilotstatus.com.br/api/layer/evolution-go/send/button"
payload = {
"number": "5511999999999",
"title": "Order #123",
"description": "Your order is ready.",
"buttons": [
{
"type": "reply",
"displayText": "Confirm",
"id": "confirm_1"
},
{
"type": "url",
"displayText": "Track",
"url": "https://track.example.com/123"
}
],
"footer": "Pilot Status",
"imageUrl": "<string>",
"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',
title: 'Order #123',
description: 'Your order is ready.',
buttons: [
{type: 'reply', displayText: 'Confirm', id: 'confirm_1'},
{type: 'url', displayText: 'Track', url: 'https://track.example.com/123'}
],
footer: 'Pilot Status',
imageUrl: '<string>',
id: '<string>',
delay: 123,
mentionedJid: '<string>',
mentionAll: true,
formatJid: true,
quoted: {}
})
};
fetch('https://pilotstatus.com.br/api/layer/evolution-go/send/button', 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/button",
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',
'title' => 'Order #123',
'description' => 'Your order is ready.',
'buttons' => [
[
'type' => 'reply',
'displayText' => 'Confirm',
'id' => 'confirm_1'
],
[
'type' => 'url',
'displayText' => 'Track',
'url' => 'https://track.example.com/123'
]
],
'footer' => 'Pilot Status',
'imageUrl' => '<string>',
'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/button"
payload := strings.NewReader("{\n \"number\": \"5511999999999\",\n \"title\": \"Order #123\",\n \"description\": \"Your order is ready.\",\n \"buttons\": [\n {\n \"type\": \"reply\",\n \"displayText\": \"Confirm\",\n \"id\": \"confirm_1\"\n },\n {\n \"type\": \"url\",\n \"displayText\": \"Track\",\n \"url\": \"https://track.example.com/123\"\n }\n ],\n \"footer\": \"Pilot Status\",\n \"imageUrl\": \"<string>\",\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/button")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"number\": \"5511999999999\",\n \"title\": \"Order #123\",\n \"description\": \"Your order is ready.\",\n \"buttons\": [\n {\n \"type\": \"reply\",\n \"displayText\": \"Confirm\",\n \"id\": \"confirm_1\"\n },\n {\n \"type\": \"url\",\n \"displayText\": \"Track\",\n \"url\": \"https://track.example.com/123\"\n }\n ],\n \"footer\": \"Pilot Status\",\n \"imageUrl\": \"<string>\",\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/button")
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 \"title\": \"Order #123\",\n \"description\": \"Your order is ready.\",\n \"buttons\": [\n {\n \"type\": \"reply\",\n \"displayText\": \"Confirm\",\n \"id\": \"confirm_1\"\n },\n {\n \"type\": \"url\",\n \"displayText\": \"Track\",\n \"url\": \"https://track.example.com/123\"\n }\n ],\n \"footer\": \"Pilot Status\",\n \"imageUrl\": \"<string>\",\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": "ButtonMessage",
"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": {
"interactiveMessage": {
"header": {
"title": "Menu"
},
"body": {
"text": "Choose an option"
},
"footer": {
"text": "Pilot Status"
},
"InteractiveMessage": {
"NativeFlowMessage": {
"buttons": [
{
"name": "quick_reply",
"buttonParamsJSON": "{\"display_text\":\"Yes\",\"id\":\"btn-yes\"}"
},
{
"name": "cta_url",
"buttonParamsJSON": "{\"display_text\":\"Visit site\",\"url\":\"https://pilotstatus.com.br\",\"merchant_url\":\"https://pilotstatus.com.br\"}"
}
]
}
}
}
},
"MessageContextInfo": {
"stanzaID": "",
"participant": "",
"quotedMessage": {
"conversation": ""
}
}
}
}{
"status": 400,
"error": "Bad Request",
"message": "Invalid payload"
}