Returns delivery events for the specified Webhook from the last 7 days, sorted by event_id descending. Each event includes delivery information for the current Webhook. Returns an empty array when no records match. Past delivery events remain queryable for 7 days after Webhook deletion.
Prerequisites
Endpoint and authentication have been configured. For details, see API overview and authentication.
Endpoint
GET /webhook_endpoints/{id}/events
Path parameters
id string (必选)
Webhook ID, format wep_<ULID>
Query parameterslimitinteger (可选)Items per page; default 20, range 1–100page string (可选)Opaque pagination cursor; omit on the first request, and pass the next_page returned by the previous page on subsequent requests | Request example |
Response fieldsdataarray<object>Array of event objectsdata[].type stringAlways eventdata[].id stringEvent ID, format whe_<ULID>; all delivery attempts for the same event share the same outer iddata[].created_at stringEvent creation time, ISO 8601data[].data objectEvent payloaddata[].data.id stringResource identifier; for Thread events, this is the Session identifierdata[].data.type stringEvent typedata[].data.workspace_id stringWorkspace IDdata[].data.session_thread_id stringFor Thread events, the specific Thread identifierdata[].delivery objectDelivery information for the current Webhookdata[].delivery.webhook_id stringWebhook IDdata[].delivery.status stringDelivery status, e.g. SUCCEEDEDdata[].delivery.attempt_count integerNumber of delivery attemptsdata[].delivery.delivery_at stringDelivery start time, ISO 8601data[].delivery.finish_at stringDelivery finish time, ISO 8601data[].delivery.failure_reason string | nullFailure reason; null on successnext_page string | nullNext page cursor; null on the last pagerequest_id stringUnique identifier of this request; attach it when troubleshooting issues | ResponseThe response containsdata (an array of Webhook objects) and next_page (the cursor for the next page; null when there is no more data). |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | 11800016 | invalid webhook event query |