POST /openapi/memorylake/admin/v1/webhooks/{webhook_id}/deliveries/{delivery_id}/resend
所需权限:
webhook:manage路径参数
string
必填
Webhook 的标识
integer
必填
投递记录的标识
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/admin/v1/webhooks/16522a01eaa7b9feef48caafb0b487a5/deliveries/86781417b9e7c90df34ec8c367ab1854/resend' \
-H 'Authorization: Bearer sk_xxxxxx'
响应
object
显示 Webhook Delivery 对象
显示 Webhook Delivery 对象
integer
目前已尝试的次数
integer
事件发生时间,Unix 秒级时间戳
integer
投递记录的标识
string
事件编号,随
webhook-id 请求头发送;自动重试与重新发送时不变string
事件类型;测试事件为
webhook.teststring
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": "8085a81b91bad7009b3fd09854461edf",
"event_type": "example",
"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 | 资源不存在 |
409 | 请求与当前状态冲突,例如重复或已达上限 |
422 | 请求体或参数未通过校验 |
429 | 请求过多,请按 Retry-After 等待后重试 |
500 | 服务端错误 |