Skip to main content

List Webhooks

Returns all non-deleted webhooks in the current workspace. The endpoint is not paginated. The signing secret is not returned in list responses.

Prerequisites

Endpoint and authentication configured. For details, see Overview and authentication.

Endpoint

GET /webhook_endpoints

Request example

curl "$AGENTSTUDIO_URL/webhook_endpoints" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

data array<object>Array of Webhook objectsdata[].id stringWebhook IDdata[].description string | nullDescriptiondata[].url stringCallback URLdata[].events array<string>Subscribed named event typesdata[].status stringWebhook status: ACTIVE or DISABLEDdata[].disabled_reason string | nullDisable reason; null when not disableddata[].consecutive_fail integerCurrent consecutive failure countdata[].last_success_at string | nullLast successful delivery timedata[].last_failure_at string | nullLast failed delivery timedata[].created_at stringCreation time, ISO 8601data[].updated_at stringLast update time, ISO 8601request_id stringUnique request identifier

Response

{
  "data": [
    {
      "id": "wep_01JXX7YQGPRPV1BZXA35QE7WDP",
      "description": "Production session events",
      "url": "https://example.com/managedagent/webhooks",
      "events": [
        "session.updated",
        "session.status_idled",
        "session.thread_terminated"
      ],
      "status": "ACTIVE",
      "disabled_reason": null,
      "consecutive_fail": 2,
      "last_success_at": "2026-08-06T10:05:00Z",
      "last_failure_at": "2026-08-06T10:10:00Z",
      "created_at": "2026-08-06T10:00:00Z",
      "updated_at": "2026-08-06T10:00:00Z"
    }
  ],
  "request_id": "8e1d16e4"
}

Error codes

HTTP statusError codeDescription
401InvalidApiKeyInvalid API-key provided.