Skip to main content

查询 Webhook 详情

查询单个 Webhook 的详情。详情不返回 Signing Secret。

前提

已完成 Endpoint 与鉴权配置,详见API 总览与认证。

接口

GET /webhook_endpoints/{id}

路径参数

id string (必选)Webhook ID,格式 wep_<ULID>

请求示例

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

响应字段

id stringWebhook ID,格式 wep_<ULID>description string | null描述url string回调 URLevents array<string>订阅的命名事件类型status stringWebhook 状态:ACTIVE 或 DISABLEDdisabled_reason string | null禁用原因;未禁用时为 nullconsecutive_fail integer当前连续失败次数last_success_at string | null最近成功投递时间last_failure_at string | null最近失败投递时间created_at string创建时间,ISO 8601updated_at string最近更新时间,ISO 8601request_id string请求唯一标识

响应

{
  "id": "wep_01JXX7YQGPRPV1BZXA35QE7WDP",
  "description": "生产环境会话事件",
  "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"
}

错误码

状态码错误码说明
40411800001webhook not found