Group messages
Lists messages in the linked number’s GROUP conversations (newest first). Paginated via page/pageSize. Filter by date with startDate/endDate (ISO 8601, over createdAt). Meta numbers return 400 NOT_SUPPORTED_FOR_META (groups are PILOT_STATUS-only). The number’s privacy (PII) mode applies: RELAY_ONLY → [] + notice:“PII_RELAY_ONLY”; STORE_X_DAYS clamps to the window max(startDate, now − retentionDays). Requires a number-scoped key.
Requires a number-scoped key.
curl --request GET \
--url https://pilotstatus.com.br/v1/messages/group \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/messages/group"
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/group', 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/group",
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/group"
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/group")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/messages/group")
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{
"messages": [
{
"id": "cm_01HZX...",
"conversationId": "conv_01HZX...",
"groupId": "123456789-987654321@g.us",
"groupSubject": "Pilot Status Group",
"direction": "INBOUND",
"fromNumber": "5511988887777",
"text": "Bom dia, pessoal!",
"createdAt": "2026-06-27T10:00:00.000Z"
}
],
"total": 1,
"page": 1,
"pageSize": 30,
"totalPages": 1
}{
"error": "Group messages are not supported for Meta Cloud API numbers",
"code": "NOT_SUPPORTED_FOR_META"
}{
"error": "Unauthorized"
}{
"error": "Tenant-scoped keys cannot call number endpoints",
"code": "TENANT_SCOPE_NOT_ALLOWED"
}{
"error": "Too many requests"
}Authorizations
Your ps_ API key
Query Parameters
Start of the date range (filters by createdAt). Must be ≤ endDate. (string (ISO 8601))
End of the date range (filters by createdAt). (string (ISO 8601))
Page (default 1). (integer (≥1))
Items per page (default 30, max 100). (integer (1–100))
Response
Group messages
Was this page helpful?
curl --request GET \
--url https://pilotstatus.com.br/v1/messages/group \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/messages/group"
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/group', 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/group",
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/group"
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/group")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/messages/group")
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{
"messages": [
{
"id": "cm_01HZX...",
"conversationId": "conv_01HZX...",
"groupId": "123456789-987654321@g.us",
"groupSubject": "Pilot Status Group",
"direction": "INBOUND",
"fromNumber": "5511988887777",
"text": "Bom dia, pessoal!",
"createdAt": "2026-06-27T10:00:00.000Z"
}
],
"total": 1,
"page": 1,
"pageSize": 30,
"totalPages": 1
}{
"error": "Group messages are not supported for Meta Cloud API numbers",
"code": "NOT_SUPPORTED_FOR_META"
}{
"error": "Unauthorized"
}{
"error": "Tenant-scoped keys cannot call number endpoints",
"code": "TENANT_SCOPE_NOT_ALLOWED"
}{
"error": "Too many requests"
}