跳转到主要内容
Webhook

测试 Webhook

向回调地址发送一次测试事件

POST
/api/v1/agentstudio/webhook_endpoints/{id}/test
cURL
curl --request POST \
  --url 'https://dashscope.aliyuncs.com/api/v1/agentstudio/webhook_endpoints/{id}/test' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "type": "event",
  "id": "whe_01JXX8JY9BBM4BK4C2P7K3M3ZR",
  "created_at": "2026-08-06T10:30:21.123Z",
  "data": {
    "id": "wep_01JXX7YQGPRPV1BZXA35QE7WDP",
    "type": "webhook.test",
    "workspace_id": "ws_xxx"
  },
  "request_id": "8e1d16e4"
}

鉴权

string
header
必填

DashScope API Key

路径参数

string
必填

Webhook ID,格式 wep_<ULID>

响应

200-application/json
string

固定为 event

string

事件 ID,格式 whe_<ULID>

string
object
string