List Webhook Events

Updated at:

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

idstringRequired

Webhook ID, format wep_<ULID>

Query parameters

limitintegerOptional

Items per page; default 20, range 1–100

pagestringOptional

Opaque 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[].typestring

Always event

data[].idstring

Event ID, format whe_<ULID>; all delivery attempts for the same event share the same outer id

data[].created_atstring

Event creation time, ISO 8601

data[].dataobject

Event payload

data[].data.idstring

Resource identifier; for Thread events, this is the Session identifier

data[].data.typestring

Event type

data[].data.workspace_idstring

Workspace ID

data[].data.session_thread_idstring

For Thread events, the specific Thread identifier

data[].deliveryobject

Delivery information for the current Webhook

data[].delivery.webhook_idstring

Webhook ID

data[].delivery.statusstring

Delivery status, e.g. SUCCEEDED

data[].delivery.attempt_countinteger

Number of delivery attempts

data[].delivery.delivery_atstring

Delivery start time, ISO 8601

data[].delivery.finish_atstring

Delivery finish time, ISO 8601

data[].delivery.failure_reasonstring | null

Failure reason; null on success

next_pagestring | null

Next page cursor; null on the last page

request_idstring

Unique 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 statusError codeDescription
40011800016invalid webhook event query