curl --request POST \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/send-carousel \
--header 'Content-Type: application/json' \
--data '
{
"phone": "5511988887777",
"message": "Confira as ofertas da semana:",
"cards": [
{
"image": "https://example.com/produtos/tenis-runner.jpg",
"title": "Tênis Runner",
"text": "De R$ 399,90 por R$ 299,90 até domingo.",
"footer": "Frete grátis",
"buttons": [
{
"type": "reply",
"id": "quero_tenis_runner",
"label": "Quero este"
},
{
"type": "url",
"label": "Ver na loja",
"url": "https://example.com/p/tenis-runner"
}
]
},
{
"image": "https://example.com/produtos/mochila-urban.jpg",
"title": "Mochila Urban",
"text": "Compartimento para notebook de 15\". R$ 189,90.",
"buttons": [
{
"type": "reply",
"id": "quero_mochila_urban",
"label": "Quero este"
}
]
}
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
phone: '5511988887777',
message: 'Confira as ofertas da semana:',
cards: [
{
image: 'https://example.com/produtos/tenis-runner.jpg',
title: 'Tênis Runner',
text: 'De R$ 399,90 por R$ 299,90 até domingo.',
footer: 'Frete grátis',
buttons: [
{type: 'reply', id: 'quero_tenis_runner', label: 'Quero este'},
{type: 'url', label: 'Ver na loja', url: 'https://example.com/p/tenis-runner'}
]
},
{
image: 'https://example.com/produtos/mochila-urban.jpg',
title: 'Mochila Urban',
text: 'Compartimento para notebook de 15". R$ 189,90.',
buttons: [{type: 'reply', id: 'quero_mochila_urban', label: 'Quero este'}]
}
]
})
};
fetch('https://api.wabox.me/instances/{instance_id}/token/{token}/send-carousel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wabox.me/instances/{instance_id}/token/{token}/send-carousel"
payload = {
"phone": "5511988887777",
"message": "Confira as ofertas da semana:",
"cards": [
{
"image": "https://example.com/produtos/tenis-runner.jpg",
"title": "Tênis Runner",
"text": "De R$ 399,90 por R$ 299,90 até domingo.",
"footer": "Frete grátis",
"buttons": [
{
"type": "reply",
"id": "quero_tenis_runner",
"label": "Quero este"
},
{
"type": "url",
"label": "Ver na loja",
"url": "https://example.com/p/tenis-runner"
}
]
},
{
"image": "https://example.com/produtos/mochila-urban.jpg",
"title": "Mochila Urban",
"text": "Compartimento para notebook de 15\". R$ 189,90.",
"buttons": [
{
"type": "reply",
"id": "quero_mochila_urban",
"label": "Quero este"
}
]
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wabox.me/instances/{instance_id}/token/{token}/send-carousel",
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([
'phone' => '5511988887777',
'message' => 'Confira as ofertas da semana:',
'cards' => [
[
'image' => 'https://example.com/produtos/tenis-runner.jpg',
'title' => 'Tênis Runner',
'text' => 'De R$ 399,90 por R$ 299,90 até domingo.',
'footer' => 'Frete grátis',
'buttons' => [
[
'type' => 'reply',
'id' => 'quero_tenis_runner',
'label' => 'Quero este'
],
[
'type' => 'url',
'label' => 'Ver na loja',
'url' => 'https://example.com/p/tenis-runner'
]
]
],
[
'image' => 'https://example.com/produtos/mochila-urban.jpg',
'title' => 'Mochila Urban',
'text' => 'Compartimento para notebook de 15". R$ 189,90.',
'buttons' => [
[
'type' => 'reply',
'id' => 'quero_mochila_urban',
'label' => 'Quero este'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://api.wabox.me/instances/{instance_id}/token/{token}/send-carousel"
payload := strings.NewReader("{\n \"phone\": \"5511988887777\",\n \"message\": \"Confira as ofertas da semana:\",\n \"cards\": [\n {\n \"image\": \"https://example.com/produtos/tenis-runner.jpg\",\n \"title\": \"Tênis Runner\",\n \"text\": \"De R$ 399,90 por R$ 299,90 até domingo.\",\n \"footer\": \"Frete grátis\",\n \"buttons\": [\n {\n \"type\": \"reply\",\n \"id\": \"quero_tenis_runner\",\n \"label\": \"Quero este\"\n },\n {\n \"type\": \"url\",\n \"label\": \"Ver na loja\",\n \"url\": \"https://example.com/p/tenis-runner\"\n }\n ]\n },\n {\n \"image\": \"https://example.com/produtos/mochila-urban.jpg\",\n \"title\": \"Mochila Urban\",\n \"text\": \"Compartimento para notebook de 15\\\". R$ 189,90.\",\n \"buttons\": [\n {\n \"type\": \"reply\",\n \"id\": \"quero_mochila_urban\",\n \"label\": \"Quero este\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}{
"id": "3EB0A9C6D2F1E4B5A7C8",
"message_id": "3EB0A9C6D2F1E4B5A7C8",
"wabox_id": "wbx_01J5Q8ZK3M4N5P6Q7R8S9T0M01",
"status": "queued"
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Instance subscription is not active"
}
}Enviar carrossel de cards
message é o texto que acompanha o carrossel e cards[] tem de 1 a 10 cards. Cada card tem image obrigatória (URL, data URL ou base64), text, title/footer opcionais e até 3 buttons nos mesmos formatos de send-button-list (reply, url, call, copy; type pode ser omitido). Botões reply voltam como buttons_response.
Best effort. Mensagens interativas não são um recurso oficial para contas comuns do WhatsApp: elas são entregues como mensagens “native flow” e a renderização depende do app e da plataforma de quem recebe — celulares (Android/iOS) exibem normalmente, mas o WhatsApp Web e o WhatsApp Desktop não exibem botões, lista nem carrossel (mostram o placeholder “mensagem de visualização única” e a pessoa precisa abrir no celular; é o mesmo comportamento de outras APIs não-oficiais e não há contorno conhecido, já que o conteúdo é cifrado igual para todos os dispositivos). Em versões antigas do app a mensagem pode chegar como texto simples. Botões reply voltam como webhook buttons_response; a opção escolhida em uma lista, como list_response.
A mensagem entra na fila e é enviada de forma assíncrona; message_id já é o id definitivo no WhatsApp (id é um alias dele) e o resultado chega no webhook delivery. delay_message e delay_typing (segundos, 0–15) funcionam como nos demais envios: o primeiro substitui o intervalo aleatório da instância para esta mensagem, o segundo mostra “digitando…” antes de enviar.
curl --request POST \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/send-carousel \
--header 'Content-Type: application/json' \
--data '
{
"phone": "5511988887777",
"message": "Confira as ofertas da semana:",
"cards": [
{
"image": "https://example.com/produtos/tenis-runner.jpg",
"title": "Tênis Runner",
"text": "De R$ 399,90 por R$ 299,90 até domingo.",
"footer": "Frete grátis",
"buttons": [
{
"type": "reply",
"id": "quero_tenis_runner",
"label": "Quero este"
},
{
"type": "url",
"label": "Ver na loja",
"url": "https://example.com/p/tenis-runner"
}
]
},
{
"image": "https://example.com/produtos/mochila-urban.jpg",
"title": "Mochila Urban",
"text": "Compartimento para notebook de 15\". R$ 189,90.",
"buttons": [
{
"type": "reply",
"id": "quero_mochila_urban",
"label": "Quero este"
}
]
}
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
phone: '5511988887777',
message: 'Confira as ofertas da semana:',
cards: [
{
image: 'https://example.com/produtos/tenis-runner.jpg',
title: 'Tênis Runner',
text: 'De R$ 399,90 por R$ 299,90 até domingo.',
footer: 'Frete grátis',
buttons: [
{type: 'reply', id: 'quero_tenis_runner', label: 'Quero este'},
{type: 'url', label: 'Ver na loja', url: 'https://example.com/p/tenis-runner'}
]
},
{
image: 'https://example.com/produtos/mochila-urban.jpg',
title: 'Mochila Urban',
text: 'Compartimento para notebook de 15". R$ 189,90.',
buttons: [{type: 'reply', id: 'quero_mochila_urban', label: 'Quero este'}]
}
]
})
};
fetch('https://api.wabox.me/instances/{instance_id}/token/{token}/send-carousel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wabox.me/instances/{instance_id}/token/{token}/send-carousel"
payload = {
"phone": "5511988887777",
"message": "Confira as ofertas da semana:",
"cards": [
{
"image": "https://example.com/produtos/tenis-runner.jpg",
"title": "Tênis Runner",
"text": "De R$ 399,90 por R$ 299,90 até domingo.",
"footer": "Frete grátis",
"buttons": [
{
"type": "reply",
"id": "quero_tenis_runner",
"label": "Quero este"
},
{
"type": "url",
"label": "Ver na loja",
"url": "https://example.com/p/tenis-runner"
}
]
},
{
"image": "https://example.com/produtos/mochila-urban.jpg",
"title": "Mochila Urban",
"text": "Compartimento para notebook de 15\". R$ 189,90.",
"buttons": [
{
"type": "reply",
"id": "quero_mochila_urban",
"label": "Quero este"
}
]
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wabox.me/instances/{instance_id}/token/{token}/send-carousel",
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([
'phone' => '5511988887777',
'message' => 'Confira as ofertas da semana:',
'cards' => [
[
'image' => 'https://example.com/produtos/tenis-runner.jpg',
'title' => 'Tênis Runner',
'text' => 'De R$ 399,90 por R$ 299,90 até domingo.',
'footer' => 'Frete grátis',
'buttons' => [
[
'type' => 'reply',
'id' => 'quero_tenis_runner',
'label' => 'Quero este'
],
[
'type' => 'url',
'label' => 'Ver na loja',
'url' => 'https://example.com/p/tenis-runner'
]
]
],
[
'image' => 'https://example.com/produtos/mochila-urban.jpg',
'title' => 'Mochila Urban',
'text' => 'Compartimento para notebook de 15". R$ 189,90.',
'buttons' => [
[
'type' => 'reply',
'id' => 'quero_mochila_urban',
'label' => 'Quero este'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://api.wabox.me/instances/{instance_id}/token/{token}/send-carousel"
payload := strings.NewReader("{\n \"phone\": \"5511988887777\",\n \"message\": \"Confira as ofertas da semana:\",\n \"cards\": [\n {\n \"image\": \"https://example.com/produtos/tenis-runner.jpg\",\n \"title\": \"Tênis Runner\",\n \"text\": \"De R$ 399,90 por R$ 299,90 até domingo.\",\n \"footer\": \"Frete grátis\",\n \"buttons\": [\n {\n \"type\": \"reply\",\n \"id\": \"quero_tenis_runner\",\n \"label\": \"Quero este\"\n },\n {\n \"type\": \"url\",\n \"label\": \"Ver na loja\",\n \"url\": \"https://example.com/p/tenis-runner\"\n }\n ]\n },\n {\n \"image\": \"https://example.com/produtos/mochila-urban.jpg\",\n \"title\": \"Mochila Urban\",\n \"text\": \"Compartimento para notebook de 15\\\". R$ 189,90.\",\n \"buttons\": [\n {\n \"type\": \"reply\",\n \"id\": \"quero_mochila_urban\",\n \"label\": \"Quero este\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}{
"id": "3EB0A9C6D2F1E4B5A7C8",
"message_id": "3EB0A9C6D2F1E4B5A7C8",
"wabox_id": "wbx_01J5Q8ZK3M4N5P6Q7R8S9T0M01",
"status": "queued"
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Instance subscription is not active"
}
}Path Parameters
Id da instância (dashboard › instância › Credenciais).
Token da instância. Trate como senha.
Body
Chat de destino: número só dígitos com DDI e DDD (5511988887777), grupo (<id>-group), canal (<id>@newsletter), LID (<id>@lid) ou status@broadcast.
1^(\d{5,20}|\d+@lid|\d+(-\d+)?-group|\d+@g\.us|\d+@newsletter|\d+@broadcast|status@broadcast)$1 - 40961 - 10 elementsShow child attributes
Show child attributes
Id da mensagem a citar (responder), no mesmo chat.
1Números a mencionar; cada um precisa aparecer no texto como @<número>.
5001^(\d{5,20}|\d+@lid|\d+(-\d+)?-group|\d+@g\.us|\d+@newsletter|\d+@broadcast|status@broadcast)$Grupos: menciona todos os participantes.
Segundos (0–15) de espera antes de enviar, substituindo o intervalo aleatório da instância (delay_message_min_ms/max_ms).
0 <= x <= 15Segundos (0–15) mostrando "digitando…" (ou "gravando…" em voice notes) antes de enviar. Padrão 0.
0 <= x <= 15