Webhooks
Eventos de entrega do webhook
Lista os eventos de entrega recentes de um webhook (somente leitura). Cada item traz event, status (SUCCESS|FAILED), statusCode, payload, response, durationMs e createdAt (UTC). Numa tentativa entregue, response traz o corpo do seu endpoint (cortado em 1000 caracteres) e statusCode o status HTTP. Quando a requisição nunca se completou — DNS, conexão recusada, timeout, TLS — statusCode é null e response traz a cadeia de causas, da mais externa para a mais interna, unidas por ' <- ' e marcadas com o código de erro do sistema, ex.: 'fetch failed <- getaddrinfo EAI_AGAIN hooks.example.com [EAI_AGAIN]'. Trate response como string de diagnóstico: o texto vem do runtime e não é contrato estável. Use limit (1–50) e event para filtrar. 404 se o webhook não for visível para a key chamadora; respeita o mesmo escopo de número de GET /api/v1/webhooks.
GET
/
v1
/
webhooks
/
{id}
/
logs
Eventos de entrega do webhook
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,
"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,
"createdAt": "2026-06-28T10:02:00.000Z"
}
]
}{
"error": "Validation error"
}{
"error": "Unauthorized"
}{
"error": "Too many requests"
}Autorizações
apiKeyapiKeyId
Sua chave de API ps_
Cabeçalhos
Restringe ao contexto de um número (obrigatório em concessões OAuth por número).
Parâmetros de caminho
Id do webhook.
Parâmetros de consulta
Número de eventos a retornar (padrão 50). (integer (1–50))
Filtra por nome do evento (ex.: message.delivered).
Resposta
Eventos recentes
Esta página foi útil?
⌘I
Eventos de entrega do webhook
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,
"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,
"createdAt": "2026-06-28T10:02:00.000Z"
}
]
}{
"error": "Validation error"
}{
"error": "Unauthorized"
}{
"error": "Too many requests"
}