Elenca le consegne di un endpoint webhook

GET /v1/webhook-endpoints/{endpoint_id}/deliveries · autorizzazione webhook-endpoints:read · tutti i piani

Restituisce la cronologia delle consegne dell'endpoint degli ultimi 30 giorni, dalla più recente (order=asc per la più vecchia), in pagine con cursore. Nell'elenco vengono restituiti solo i metadati: né il payload né il corpo della risposta del destinatario vengono conservati. Un cursore è legato all'endpoint e ai filtri status ed event_type.

Richiesta

Campo Tipo Obbligatorio Descrizione
endpoint_id path sì ID dell'endpoint webhook (whe_…).
status query no pending, retrying, succeeded, abandoned o cancelled.
event_type query no Solo le consegne di questo tipo di evento.
limit query no 1–100, predefinito 20.
after, before query no Cursore da list_metadata.
order query no desc (predefinito) o asc.

Risposta

200 OK

{
  "data": [
    {
      "id": "whd_01k8a3m6r8t0v2w4x6y8z0b3d5",
      "endpoint_id": "whe_01k8a3m5q7t9v1w3x5y7z9b2c4",
      "event_id": "evt_01k8a3m7s9v1w3x5y7z9b2c4d6",
      "event_seq": 1042,
      "event_type": "user.created",
      "replay_no": 0,
      "status": "abandoned",
      "attempt_count": 8,
      "next_attempt_at": null,
      "last_http_status": 500,
      "last_error_class": "http_status",
      "last_latency_ms": 312,
      "created_at": "2026-10-25T08:00:00Z",
      "completed_at": "2026-10-26T08:00:00Z"
    }
  ],
  "list_metadata": { "before": null, "after": "eyJ2IjoxLCJ…" }
}

Errori

HTTP code Quando
400 invalid_cursor Il cursore è malformato oppure appartiene a un altro endpoint, filtro o ordinamento.
404 not_found Nessun endpoint con questo ID in questo ambiente.
422 validation_failed /status invalid_value, /event_type invalid_value, un parametro ripetuto oppure limit fuori da 1–100.
401 unauthenticated La credenziale è mancante, non valida o revocata.
403 insufficient_permissions La credenziale non ha webhook-endpoints:read.
503 service_unavailable La gestione dei webhook è temporaneamente non disponibile; riprova dopo il periodo indicato in Retry-After.

Esempio

curl "https://api.eu.keenauth.com/v1/webhook-endpoints/whe_01k8a3m5q7t9v1w3x5y7z9b2c4/deliveries?status=abandoned&limit=20" \
  -H "Authorization: Bearer $KEENAUTH_SECRET_KEY"

CLI: keenauth webhook-endpoints deliveries list whe_01k8a3m5q7t9v1w3x5y7z9b2c4 --status abandoned --limit 20