Listar números
Lista todos los números de WhatsApp del tenant (PILOT_STATUS y Meta Cloud API), con el estado de conexión y los prefijos de las API keys. Autentícate con x-api-key-id (o x-api-key: ps_…). Cada elemento también trae extraChargeUnpaidSince y extraChargeDisconnectAt (ISO 8601 o null): se definen mientras el cobro de número extra está impago y el envío desde ese número está bloqueado; págalo con POST /v1/numbers/{id}/pay. Están en el nivel superior del elemento, no forman parte de health y no cambian state. Requiere una credencial de toda la cuenta (key de workspace, o un token OAuth con acceso a todo el workspace): una key limitada a un número, o un token OAuth con acceso solo a algunos números, recibe 403 NUMBER_SCOPE_NOT_ALLOWED. state de un número no oficial (un elemento por número): OPEN (todas las conexiones abiertas), PARTIAL (solo algunas), DISCONNECTED (ninguna) o SHADOWBAN (con reason); de un número de Meta: OPEN/DISCONNECTED según health.sendable.
curl --request GET \
--url https://pilotstatus.com.br/v1/numbers \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/numbers"
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/numbers', 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/numbers",
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/numbers"
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/numbers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/numbers")
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[
{
"id": "num_01HZX...",
"instanceName": "tenant-5511999999999",
"number": "5511999999999",
"name": "Suporte",
"provider": "PILOT_STATUS",
"apiKeys": [
{
"name": "Default",
"keyPrefix": "ps_abcd",
"keyLast4": "wxyz"
}
],
"state": "OPEN",
"isFullyConnected": true,
"createdAt": "2026-06-01T11:59:00.000Z",
"updatedAt": "2026-06-01T12:00:00.000Z",
"extraChargeUnpaidSince": null,
"extraChargeDisconnectAt": null
}
]{
"error": "Unauthorized"
}{
"error": "This endpoint requires a tenant-scoped API key",
"code": "NUMBER_SCOPE_NOT_ALLOWED"
}{
"error": "Too many requests"
}¿Esta página le ayudó?
curl --request GET \
--url https://pilotstatus.com.br/v1/numbers \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/numbers"
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/numbers', 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/numbers",
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/numbers"
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/numbers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/numbers")
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[
{
"id": "num_01HZX...",
"instanceName": "tenant-5511999999999",
"number": "5511999999999",
"name": "Suporte",
"provider": "PILOT_STATUS",
"apiKeys": [
{
"name": "Default",
"keyPrefix": "ps_abcd",
"keyLast4": "wxyz"
}
],
"state": "OPEN",
"isFullyConnected": true,
"createdAt": "2026-06-01T11:59:00.000Z",
"updatedAt": "2026-06-01T12:00:00.000Z",
"extraChargeUnpaidSince": null,
"extraChargeDisconnectAt": null
}
]{
"error": "Unauthorized"
}{
"error": "This endpoint requires a tenant-scoped API key",
"code": "NUMBER_SCOPE_NOT_ALLOWED"
}{
"error": "Too many requests"
}