请求管理 API
用于操作 webhook_logs 中保存的入站请求记录。
Base URL: https://api.hooknexus.com
需 Authorization: Bearer <jwt>。
获取单条请求
GET /api/requests/:id
:id:Webhook 接收成功响应中的id(与 Webhook 接收 一致)。- 超出保留期或无权访问时可能返回 404。
示例响应(200 OK):
{ "id": "log-uuid-1", "endpoint_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "method": "POST", "path": "/h/a1b2c3d4-e5f6-7890-abcd-ef1234567890", "headers": { "content-type": "application/json" }, "query": {}, "body": "{\"hello\":\"world\"}", "content_type": "application/json", "ip": "203.0.113.10", "user_agent": "curl/8.0", "size": 18, "created_at": "2026-03-23T12:00:00.000Z"}其他操作
DELETE /api/requests/:id:删除单条日志。DELETE /api/requests:批量删除(请求体为日志 ID 数组)。