跳到导航

发送测试 Webhook 事件

向 webhook 一次性发送指定类型的示例事件,并返回端点的状态代码、响应时间、内容类型和响应大小。测试事件与真实事件一样会签名,绝不会重试,并与重新投递共用每个 webhook 每分钟 10 次的限制。

路径参数

webhook_idstring必需

Webhook 的 ID。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
webhook_typeenum必需

要发送示例的事件类型。

响应

成功响应

delivery_idstring

投递 ID,也会在 ElevenLabs-Webhook-Delivery-Id 请求头中发送。

outcomeenum

此次尝试的结果。

response_codeinteger or null

端点响应时返回的 HTTP 状态码。

latency_msinteger or null

端点响应所用时间(毫秒)。

response_content_typestring or null

端点响应时返回的 Content-Type。

response_body_bytesinteger or null

端点响应体的大小(字节),前提是端点已响应。响应体本身不会被存储或返回。

failure_originstring or null

失败来源:recipient、configuration、external_transport 或 timeout。

错误

422
Unprocessable Entity Error