Mensajes
Estado de la ventana de atención
Informa si la ventana de atención al cliente de 24 horas de WhatsApp está ABIERTA en este momento para un contacto en el número vinculado a la clave de API.
- Números de Meta Cloud API:
windowType: "META_24H".openes true cuando el último mensaje entrante del contacto llegó en las últimas 24 horas;expiresAteslastInboundAt+ 24 h. Mientras la ventana está abierta, se permiten mensajes de formato libre; cuando se cierra, los envíos fallan conMETA_OUTSIDE_24H_WINDOWy debes usar una plantilla aprobada. - Números web (no oficiales): sin restricción de Meta:
windowType: "NONE"yopensiempre es true;lastInboundAt/expiresAtse devuelven igualmente a modo informativo.
Consúltalo antes de enviar contenido de formato libre para decidir entre mensajes de formato libre y de plantilla.
Auth: una clave con alcance de número, o una clave de toda la cuenta con el encabezado x-whatsapp-number-id (si no, 403 TENANT_SCOPE_NOT_ALLOWED). Los tokens OAuth/MCP y las claves de cuenta también necesitan chat:read (AGENT, ADMIN u OWNER).
GET
/
v1
/
service-window
Estado de la ventana de servicio
curl --request GET \
--url https://pilotstatus.com.br/v1/service-window \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/service-window"
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/service-window', 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/service-window",
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/service-window"
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/service-window")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/service-window")
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{
"open": true,
"windowType": "META_24H",
"lastInboundAt": "2026-07-18T10:00:00.000Z",
"expiresAt": "2026-07-19T10:00:00.000Z"
}Parámetros de consulta
Respuesta
Estado de la ventana de servicio
¿Esta página le ayudó?
⌘I
Estado de la ventana de servicio
curl --request GET \
--url https://pilotstatus.com.br/v1/service-window \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/service-window"
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/service-window', 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/service-window",
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/service-window"
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/service-window")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/service-window")
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{
"open": true,
"windowType": "META_24H",
"lastInboundAt": "2026-07-18T10:00:00.000Z",
"expiresAt": "2026-07-19T10:00:00.000Z"
}