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 configured. For details, see Overview and authentication.
Endpoint
GET /webhook_endpoints/{id}/events
Path parameters
| Field | Required | Type | Description |
|---|---|---|---|
id | Yes | string | Webhook ID, format wep_<ULID> |
Query parameters
| Field | Required | Type | Description |
|---|---|---|---|
limit | No | integer | Items per page; default 20, range 1–100 |
page | No | string | Opaque pagination cursor; omit on the first request, pass the next_page value from the previous response on subsequent requests |
Request example
Response example
Response fields
| Field | Type | Description |
|---|---|---|
data | array<object> | Array of event objects |
data[].type | string | Always event |
data[].id | string | Event ID, format whe_<ULID>; all delivery attempts for the same event share the same outer id |
data[].created_at | string | Event creation time, ISO 8601 |
data[].data | object | Event payload |
data[].data.id | string | Resource identifier; for Thread events, this is the Session identifier |
data[].data.type | string | Event type |
data[].data.workspace_id | string | Workspace ID |
data[].data.session_thread_id | string | For Thread events, the specific Thread identifier |
data[].delivery | object | Delivery information for the current Webhook |
data[].delivery.webhook_id | string | Webhook ID |
data[].delivery.status | string | Delivery status, e.g. SUCCEEDED |
data[].delivery.attempt_count | integer | Number of delivery attempts |
data[].delivery.delivery_at | string | Delivery start time, ISO 8601 |
data[].delivery.finish_at | string | Delivery finish time, ISO 8601 |
data[].delivery.failure_reason | string | null | Failure reason; null on success |
next_page | string | null | Next page cursor; null on the last page |
request_id | string | Unique request identifier |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | 11800016 | Invalid webhook ID format or pagination parameter |