Messages
List messages
Unified message log of the number — outbound sends and received messages (calls excluded), newest first by createdAt. Same rows as the dashboard Logs page. Filters: status, direction, startDate/endDate, search, templateId, window. PII mode: rows are never hidden — rows the policy covers (RELAY_ONLY, or older than the STORE_X_DAYS window) come back with content and contact identity null and redacted: true; RELAY_ONLY adds notice: "PII_RELAY_ONLY".
Auth: a number-scoped key, or an account-wide key with the x-whatsapp-number-id header (else 403 TENANT_SCOPE_NOT_ALLOWED). OAuth/MCP tokens and account keys also need logs:read:content (AGENT, ADMIN or OWNER).
GET
/
v1
/
messages
List messages
curl --request GET \
--url https://pilotstatus.com.br/v1/messages \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/messages"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/messages', 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/v1/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pilotstatus.com.br/v1/messages")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "msg_abc",
"correlationId": "corr_123",
"direction": "OUT",
"from": "5511888888888",
"to": "5511999999999",
"content": "Hi John, your order 123 is on its way!",
"template": "order_shipped",
"status": "READ",
"errorCode": null,
"errorMessage": null,
"origin": "API",
"serviceWindowOpenAtSend": true,
"createdAt": "2026-02-24T15:00:00.000Z",
"sentAt": "2026-02-24T15:00:05.000Z",
"deliveredAt": "2026-02-24T15:00:07.000Z",
"readAt": "2026-02-24T15:02:11.000Z",
"externalMessageId": "wamid.HBgLNTUxMTk5OTk5OTk5"
}
],
"page": 1,
"pageSize": 30,
"total": 1,
"totalPages": 1
}
Query Parameters
Was this page helpful?
⌘I
List messages
curl --request GET \
--url https://pilotstatus.com.br/v1/messages \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/messages"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/messages', 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/v1/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pilotstatus.com.br/v1/messages")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "msg_abc",
"correlationId": "corr_123",
"direction": "OUT",
"from": "5511888888888",
"to": "5511999999999",
"content": "Hi John, your order 123 is on its way!",
"template": "order_shipped",
"status": "READ",
"errorCode": null,
"errorMessage": null,
"origin": "API",
"serviceWindowOpenAtSend": true,
"createdAt": "2026-02-24T15:00:00.000Z",
"sentAt": "2026-02-24T15:00:05.000Z",
"deliveredAt": "2026-02-24T15:00:07.000Z",
"readAt": "2026-02-24T15:02:11.000Z",
"externalMessageId": "wamid.HBgLNTUxMTk5OTk5OTk5"
}
],
"page": 1,
"pageSize": 30,
"total": 1,
"totalPages": 1
}