curl --request POST \
--url https://api.wizebot.com.br/v1/whatsapp/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number_id": "102938475610293",
"phone_number": "5511999999999"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({phone_number_id: '102938475610293', phone_number: '5511999999999'})
};
fetch('https://api.wizebot.com.br/v1/whatsapp/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.wizebot.com.br/v1/whatsapp/messages';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({phone_number_id: '102938475610293', phone_number: '5511999999999'})
};
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/whatsapp/messages"
payload = {
"phone_number_id": "102938475610293",
"phone_number": "5511999999999"
}
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/whatsapp/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([
'phone_number_id' => '102938475610293',
'phone_number' => '5511999999999'
]),
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",
"message": "Message queued successfully."
},
"timestamp": "2026-09-09T17:15:20.453Z"
}Enviar mensagem (WhatsApp)
Camada específica do WhatsApp, mantida sem mudanças para quem já integrou.
Só responde a conversas existentes. Se o número nunca conversou com o seu, o envio é recusado — e nesta camada a recusa chega como 500 SEND_FAILED, não como código de conflito.
A janela de 24 horas não é verificada aqui. Uma mensagem fora da janela é aceita com 201 e depois recusada pelo WhatsApp: confirme sempre pela consulta de status.
curl --request POST \
--url https://api.wizebot.com.br/v1/whatsapp/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number_id": "102938475610293",
"phone_number": "5511999999999"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({phone_number_id: '102938475610293', phone_number: '5511999999999'})
};
fetch('https://api.wizebot.com.br/v1/whatsapp/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.wizebot.com.br/v1/whatsapp/messages';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({phone_number_id: '102938475610293', phone_number: '5511999999999'})
};
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/whatsapp/messages"
payload = {
"phone_number_id": "102938475610293",
"phone_number": "5511999999999"
}
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/whatsapp/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([
'phone_number_id' => '102938475610293',
'phone_number' => '5511999999999'
]),
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",
"message": "Message queued successfully."
},
"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
Identificador do seu número de WhatsApp na Meta.
Número do destinatário, com código do país e apenas dígitos.
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.
Nome do arquivo, para document.

