Eventos de entrega del webhook
Lista los intentos de entrega recientes de un webhook, del más nuevo al más antiguo (solo lectura). Cada elemento trae event, status (SUCCESS|FAILED), statusCode, payload, response, durationMs, whatsappNumberId, messageId, correlationId y createdAt (UTC). En un intento entregado, response contiene el cuerpo de tu endpoint (truncado a 1000 caracteres) y statusCode el estado HTTP. Cuando la solicitud nunca se completó (DNS, conexión rechazada, timeout, TLS), statusCode es null y response contiene la cadena de motivos, con la causa más interna al final, unidos por <- y etiquetados con el código de error del sistema, p. ej. fetch failed <- getaddrinfo EAI_AGAIN hooks.example.com [EAI_AGAIN]. Trata response como un texto de diagnóstico: su redacción viene del runtime y no es un contrato estable. Usa limit (1–50) y event para filtrar. 404 WEBHOOK_NOT_FOUND si el llamador no ve el webhook; respeta el mismo alcance de número que GET /v1/webhooks.
Permisos: webhooks:read (Owner o Admin con una clave de cuenta o un token OAuth/MCP).
curl --request GET \
--url https://pilotstatus.com.br/v1/webhooks/{id}/logs \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/webhooks/{id}/logs"
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/webhooks/{id}/logs', 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/webhooks/{id}/logs",
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/webhooks/{id}/logs"
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/webhooks/{id}/logs")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/webhooks/{id}/logs")
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{
"webhookId": "wh_01HZX...",
"logs": [
{
"id": "whl_01HZX...",
"webhookId": "wh_01HZX...",
"event": "message.delivered",
"status": "SUCCESS",
"statusCode": 200,
"payload": "{\"event\":\"message.delivered\",\"data\":{}}",
"response": "ok",
"durationMs": 142,
"whatsappNumberId": "num_01HZX...",
"messageId": "msg_01HZX...",
"correlationId": "corr_01HZX...",
"createdAt": "2026-06-28T09:59:00.000Z"
},
{
"id": "whl_01HZY...",
"webhookId": "wh_01HZX...",
"event": "message.delivered",
"status": "FAILED",
"statusCode": null,
"payload": "{\"event\":\"message.delivered\",\"data\":{}}",
"response": "fetch failed <- getaddrinfo EAI_AGAIN hooks.example.com [EAI_AGAIN]",
"durationMs": 21,
"whatsappNumberId": "num_01HZX...",
"messageId": "msg_01HZY...",
"correlationId": null,
"createdAt": "2026-06-28T10:02:00.000Z"
}
]
}Encabezados
Parámetros de consulta
Respuesta
Eventos recientes
¿Esta página le ayudó?
curl --request GET \
--url https://pilotstatus.com.br/v1/webhooks/{id}/logs \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/webhooks/{id}/logs"
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/webhooks/{id}/logs', 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/webhooks/{id}/logs",
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/webhooks/{id}/logs"
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/webhooks/{id}/logs")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/webhooks/{id}/logs")
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{
"webhookId": "wh_01HZX...",
"logs": [
{
"id": "whl_01HZX...",
"webhookId": "wh_01HZX...",
"event": "message.delivered",
"status": "SUCCESS",
"statusCode": 200,
"payload": "{\"event\":\"message.delivered\",\"data\":{}}",
"response": "ok",
"durationMs": 142,
"whatsappNumberId": "num_01HZX...",
"messageId": "msg_01HZX...",
"correlationId": "corr_01HZX...",
"createdAt": "2026-06-28T09:59:00.000Z"
},
{
"id": "whl_01HZY...",
"webhookId": "wh_01HZX...",
"event": "message.delivered",
"status": "FAILED",
"statusCode": null,
"payload": "{\"event\":\"message.delivered\",\"data\":{}}",
"response": "fetch failed <- getaddrinfo EAI_AGAIN hooks.example.com [EAI_AGAIN]",
"durationMs": 21,
"whatsappNumberId": "num_01HZX...",
"messageId": "msg_01HZY...",
"correlationId": null,
"createdAt": "2026-06-28T10:02:00.000Z"
}
]
}