List Webhook Events
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
/webhook_endpoints/{id}/eventsPath parameters
idstringRequiredWebhook ID, format wep_<ULID>
Query parameters
limitintegerOptionalItems per page; default 20, range 1–100
pagestringOptionalOpaque pagination cursor; omit on the first request, and pass the next_page returned by the previous page on subsequent requests
Request example
curl "$AGENTSTUDIO_URL/webhook_endpoints/wep_01JXX7YQGPRPV1BZXA35QE7WDP/events?limit=20" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response fields
dataarray<object>Array of event objects
data[].typestringAlways event
data[].idstringEvent ID, format whe_<ULID>; all delivery attempts for the same event share the same outer id
data[].created_atstringEvent creation time, ISO 8601
data[].dataobjectEvent payload
data[].data.idstringResource identifier; for Thread events, this is the Session identifier
data[].data.typestringEvent type
data[].data.workspace_idstringWorkspace ID
data[].data.session_thread_idstringFor Thread events, the specific Thread identifier
data[].deliveryobjectDelivery information for the current Webhook
data[].delivery.webhook_idstringWebhook ID
data[].delivery.statusstringDelivery status, e.g. SUCCEEDED
data[].delivery.attempt_countintegerNumber of delivery attempts
data[].delivery.delivery_atstringDelivery start time, ISO 8601
data[].delivery.finish_atstringDelivery finish time, ISO 8601
data[].delivery.failure_reasonstring | nullFailure reason; null on success
next_pagestring | nullNext page cursor; null on the last page
request_idstringUnique identifier of this request; attach it when troubleshooting issues
Response example
The response contains data (an array of Webhook objects) and next_page (the cursor for the next page; null when there is no more data).
{
"data": [
{
"type": "event",
"id": "whe_01JXX8JY9BBM4BK4C2P7K3M3ZR",
"created_at": "2026-08-06T10:30:21.123Z",
"data": {
"id": "sesn_xxx",
"type": "session.thread_idled",
"workspace_id": "ws_xxx",
"session_thread_id": "sthread_xxx"
},
"delivery": {
"webhook_id": "wep_01JXX7YQGPRPV1BZXA35QE7WDP",
"status": "SUCCEEDED",
"attempt_count": 1,
"delivery_at": "2026-08-06T10:30:21.450Z",
"finish_at": "2026-08-06T10:30:21.780Z",
"failure_reason": null
}
}
],
"next_page": null,
"request_id": "8e1d16e4"
}
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | 11800016 | invalid webhook event query |