Consultar status da mensagem
curl --request GET \
--url https://api.wizebot.com.br/v1/messages/{message_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wizebot.com.br/v1/messages/{message_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.wizebot.com.br/v1/messages/{message_id}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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/{message_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizebot.com.br/v1/messages/{message_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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": "read",
"status_updated_at": "2026-09-09T17:17:52.000Z",
"sent_at": "2026-09-09T17:15:38.238Z",
"delivered_at": "2026-09-09T17:17:52.000Z",
"read_at": "2026-09-09T17:32:24.000Z",
"failure_reason": null
},
"timestamp": "2026-09-09T17:15:20.453Z"
}{
"success": false,
"statusCode": 400,
"timestamp": "2026-09-09T17:15:20.453Z",
"path": "/api/v1/messages/7f3e1a24-5b6c-4d8e-9f01-2a3b4c5d6e7f",
"method": "GET",
"message": {
"error": "MISSING_PARAM",
"message": "message_id is required."
},
"errorId": "ERR-MTUD0DBO-KKRMP8"
}{
"success": false,
"statusCode": 401,
"timestamp": "2026-09-09T17:15:20.453Z",
"path": "/api/v1/messages/7f3e1a24-5b6c-4d8e-9f01-2a3b4c5d6e7f",
"method": "GET",
"message": {
"error": "UNAUTHORIZED",
"message": "Invalid or missing API key."
},
"errorId": "ERR-MTUD0DBO-KKRMP8"
}{
"success": false,
"statusCode": 404,
"timestamp": "2026-09-09T17:15:20.453Z",
"path": "/api/v1/messages/7f3e1a24-5b6c-4d8e-9f01-2a3b4c5d6e7f",
"method": "GET",
"message": {
"error": "MESSAGE_NOT_FOUND",
"message": "Message not found."
},
"errorId": "ERR-MTUD0DBO-KKRMP8"
}{
"success": false,
"statusCode": 429,
"timestamp": "2026-09-09T17:15:20.453Z",
"path": "/api/v1/messages/7f3e1a24-5b6c-4d8e-9f01-2a3b4c5d6e7f",
"method": "GET",
"message": {
"error": "RATE_LIMITED",
"message": "Too many requests."
},
"errorId": "ERR-MTUD0DBO-KKRMP8"
}Contrato multicanal
Consultar status da mensagem
Devolve o estado de entrega, acrescentando o canal ao retorno.
Aceita o identificador interno da WizeBot ou o do provedor.
É aqui que a entrega se confirma — o 201 do envio diz apenas que a mensagem foi aceita.
GET
/
messages
/
{message_id}
Consultar status da mensagem
curl --request GET \
--url https://api.wizebot.com.br/v1/messages/{message_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wizebot.com.br/v1/messages/{message_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.wizebot.com.br/v1/messages/{message_id}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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/{message_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizebot.com.br/v1/messages/{message_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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": "read",
"status_updated_at": "2026-09-09T17:17:52.000Z",
"sent_at": "2026-09-09T17:15:38.238Z",
"delivered_at": "2026-09-09T17:17:52.000Z",
"read_at": "2026-09-09T17:32:24.000Z",
"failure_reason": null
},
"timestamp": "2026-09-09T17:15:20.453Z"
}{
"success": false,
"statusCode": 400,
"timestamp": "2026-09-09T17:15:20.453Z",
"path": "/api/v1/messages/7f3e1a24-5b6c-4d8e-9f01-2a3b4c5d6e7f",
"method": "GET",
"message": {
"error": "MISSING_PARAM",
"message": "message_id is required."
},
"errorId": "ERR-MTUD0DBO-KKRMP8"
}{
"success": false,
"statusCode": 401,
"timestamp": "2026-09-09T17:15:20.453Z",
"path": "/api/v1/messages/7f3e1a24-5b6c-4d8e-9f01-2a3b4c5d6e7f",
"method": "GET",
"message": {
"error": "UNAUTHORIZED",
"message": "Invalid or missing API key."
},
"errorId": "ERR-MTUD0DBO-KKRMP8"
}{
"success": false,
"statusCode": 404,
"timestamp": "2026-09-09T17:15:20.453Z",
"path": "/api/v1/messages/7f3e1a24-5b6c-4d8e-9f01-2a3b4c5d6e7f",
"method": "GET",
"message": {
"error": "MESSAGE_NOT_FOUND",
"message": "Message not found."
},
"errorId": "ERR-MTUD0DBO-KKRMP8"
}{
"success": false,
"statusCode": 429,
"timestamp": "2026-09-09T17:15:20.453Z",
"path": "/api/v1/messages/7f3e1a24-5b6c-4d8e-9f01-2a3b4c5d6e7f",
"method": "GET",
"message": {
"error": "RATE_LIMITED",
"message": "Too many requests."
},
"errorId": "ERR-MTUD0DBO-KKRMP8"
}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.
Path Parameters
Identificador da mensagem — o interno da WizeBot ou o do provedor.

