webhook.test 事件,Webhook 停用时也可以发送。只发送一次(不重试),也不计入连续失败自动停用的判断;可用获取投递记录查看结果。
所需权限:
webhook:manage路径参数
string
必填
Webhook 的标识
响应
object
错误
出错时返回success: false、message 和 error_code。全部错误码见错误码。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/admin/v1/webhooks/16522a01eaa7b9feef48caafb0b487a5/test' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"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
}
}
向接收地址排队发送一个 webhook.test 事件,Webhook 停用时也可以发送
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/admin/v1/webhooks/16522a01eaa7b9feef48caafb0b487a5/test' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"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
}
}
POST /openapi/memorylake/admin/v1/webhooks/{webhook_id}/test
webhook.test 事件,Webhook 停用时也可以发送。只发送一次(不重试),也不计入连续失败自动停用的判断;可用获取投递记录查看结果。
webhook:managecurl -X POST 'https://app.memorylake.ai/openapi/memorylake/admin/v1/webhooks/16522a01eaa7b9feef48caafb0b487a5/test' \
-H 'Authorization: Bearer sk_xxxxxx'
显示 Webhook Delivery 对象
webhook-id 请求头发送;自动重试与重新发送时不变webhook.testpending = 已排队,尚无结果;retrying = 已失败,下一次重试在 next_attempt_at;skipped = Webhook 已停用,未发送。可选值:pending、retrying、succeeded、failed、skipped。timeout、connect。{
"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 | 资源不存在 |
422 | 请求体或参数未通过校验 |
429 | 请求过多,请按 Retry-After 等待后重试 |
500 | 服务端错误 |