跳转到主要内容
GET
/
api
/
v1
/
agents
/
{agentId}
/
tasks
/
{taskId}
/
webhooks
/
{webhookId}
/
deliveries
列出 webhook 投递尝试(审计日志)。
curl --request GET \
  --url https://openapi.beeos.ai/api/v1/agents/{agentId}/tasks/{taskId}/webhooks/{webhookId}/deliveries \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "deliveries": [
      {
        "delivery_id": "<string>",
        "webhook_id": "<string>",
        "task_id": "<string>",
        "attempt_num": 1,
        "last_response_status": 1,
        "next_attempt_at": "2023-11-07T05:31:56Z",
        "created_at": "2023-11-07T05:31:56Z",
        "last_error": "<string>",
        "last_attempted_at": "2023-11-07T05:31:56Z",
        "completed_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

授权

Authorization
string
header
必填

通过 Authorization: Bearer <token> header 传用户 JWToag_ User API Key。两者都由 openapi-gateway 对 Auth service 验证。

JWT 与 API Key 都是 user-scoped:每个 key(以及每个 JWT) 绑定到唯一 owner,所有路由都自动放开该 owner 名下的全部资源。 跨租户访问由 handler 内的 owner-ACL 拦截 —— API 表面没有 per-route scope 词汇。

v1.1.0 已移除: 历史 scope 词汇(agents:* / tasks:* / files:* / instances:*)以及 403 insufficient_scope 错误码已下线。已签发的 oag_ key 自动获得 owner 全权限, 无需重建。之前显式传 scopes 调用 createAPIKey 的 SDK 客户端可以直接删除该参数。详见文末 changelog 迁移说明。

路径参数

agentId
string
必填
Maximum string length: 128
taskId
string
必填
Maximum string length: 128
webhookId
string
必填
Maximum string length: 128

查询参数

limit
integer
默认值:50

最大返回投递行数。钳制在 [1, 200];默认 50。

必填范围: 1 <= x <= 200

响应

最近投递尝试列表。

success
boolean
必填
data
object
必填