GET /openapi/memorylake/admin/v1/webhooks/{webhook_id}/deliveries/{delivery_id}
所需权限:
webhook:manage路径参数
string
required
Webhook 的标识
integer
required
投递记录的标识
curl -X GET 'https://app.memorylake.cn/openapi/memorylake/admin/v1/webhooks/16522a01eaa7b9feef48caafb0b487a5/deliveries/86781417b9e7c90df34ec8c367ab1854' \
-H 'Authorization: Bearer sk_xxxxxx'
响应
object
Show Webhook Delivery Detail 对象
Show Webhook Delivery Detail 对象
integer
目前已尝试的次数
integer
事件发生时间,Unix 秒级时间戳
integer
投递记录的标识
string
事件编号,随
webhook-id 请求头发送;自动重试与重新发送时不变string
事件类型;测试事件为
webhook.teststring
按原样发送的请求体
string
最近一次响应内容的前 1 KB
boolean
true = 响应内容超过 1 KBstring
pending = 已排队,尚无结果;retrying = 已失败,下一次重试在 next_attempt_at;skipped = Webhook 已停用,未发送。可选值:pending、retrying、succeeded、failed、skipped。integer
最近一次尝试的耗时,单位毫秒
string
最近一次尝试没有拿到响应的原因。可选值:
timeout、connect。integer
最近一次尝试的时间,Unix 秒级时间戳
integer
下一次自动重试的时间,Unix 秒级时间戳
integer
最近一次响应的 HTTP 状态码
{
"success": true,
"message": "Operation completed successfully",
"data": {
"attempts": 1,
"created_at": 1760000000,
"delivery_id": 1,
"event_id": "629c1d857af1a2ae4936e92058859a73",
"event_type": "example",
"payload": "example",
"response": "example",
"response_truncated": false,
"status": "pending",
"duration_ms": 1,
"error_kind": "timeout",
"last_attempt_at": 1760000000,
"next_attempt_at": 1760000000,
"status_code": 1
}
}
错误
出错时返回success: false、message 和 error_code。全部错误码见错误码。
| 状态码 | 含义 |
|---|---|
401 | API Key 缺失、无效、已停用或已过期 |
403 | 该 Key 无权执行此操作 |
404 | 资源不存在 |
422 | 请求体或参数未通过校验 |
429 | 请求过多,请按 Retry-After 等待后重试 |
500 | 服务端错误 |