curl --request POST \
--url https://api.wizebot.com.br/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channel_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({channel_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6'})
};
fetch('https://api.wizebot.com.br/v1/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.wizebot.com.br/v1/messages';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({channel_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.wizebot.com.br/v1/messages"
payload = { "channel_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }
headers = {
"Authorization": "Bearer <token>",
"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.wizebot.com.br/v1/messages",
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([
'channel_id' => '3fa85f64-5717-4562-b3fc-2c963f66afa6'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"data": {
"message_id": "7f3e1a24-5b6c-4d8e-9f01-2a3b4c5d6e7f",
"channel": "whatsapp",
"status": "queued"
},
"timestamp": "2026-09-09T17:15:20.453Z"
}Enviar mensagem
Envia por qualquer canal conectado. O canal deriva da conta remetente, nunca do corpo: por isso não existe campo channel aqui.
O destinatário vem em uma das duas formas — contact_id (resolvido pela identidade que o contato tem naquele canal) ou to (endereço nativo). Exatamente uma das duas.
Esta fase não inicia conversa. Todo envio exige conversa existente com o destinatário; sem ela a resposta é 409 NO_OPEN_CONVERSATION.
curl --request POST \
--url https://api.wizebot.com.br/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channel_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({channel_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6'})
};
fetch('https://api.wizebot.com.br/v1/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.wizebot.com.br/v1/messages';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({channel_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.wizebot.com.br/v1/messages"
payload = { "channel_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }
headers = {
"Authorization": "Bearer <token>",
"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.wizebot.com.br/v1/messages",
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([
'channel_id' => '3fa85f64-5717-4562-b3fc-2c963f66afa6'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"data": {
"message_id": "7f3e1a24-5b6c-4d8e-9f01-2a3b4c5d6e7f",
"channel": "whatsapp",
"status": "queued"
},
"timestamp": "2026-09-09T17:15:20.453Z"
}Authorizations
Chave de API no cabeçalho Authorization: Bearer SUA-CHAVE.
A API também aceita x-api-key: SUA-CHAVE e Authorization: ApiKey SUA-CHAVE — as três formas são equivalentes, inclusive para o limite de requisições.
A chave dá acesso total à conta e é de servidor para servidor: não a use em navegador ou aplicativo móvel.
Body
O id da conta de canal, vindo de GET /channels. É ele que define o canal.
Identificador do contato na WizeBot. Use este ou to, nunca os dois.
Endereço nativo no canal — telefone no WhatsApp, identificador de chat no Telegram.
text, image, document, audio, video Texto da mensagem. Obrigatório quando type é text.
URL pública da mídia. Obrigatório nos tipos de mídia.
Legenda da mídia, onde o canal a aceita.
Nome do arquivo, para document.
Seu identificador do envio. Duas requisições com o mesmo valor viram um envio só.

