端点管理 API
Base URL: https://api.hooknexus.com
除另有说明外,以下路由均需 Authorization: Bearer <jwt>。
| 方法 | 路径 | 说明 |
|---|---|---|
POST | /api/endpoints | 创建端点,返回公开 Webhook URL |
GET | /api/endpoints | 列出当前用户的有效端点及用量摘要 |
GET | /api/endpoints/:id | 按 UUID 获取单个端点详情 |
DELETE | /api/endpoints/:id | 删除端点 |
GET | /api/endpoints/:id/requests | 分页获取该端点下的请求历史 |
创建端点示例:
POST /api/endpoints HTTP/1.1Host: api.hooknexus.comAuthorization: Bearer <jwt>Content-Type: application/json
{ "permanent": false }{ "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "url": "https://api.hooknexus.com/h/a1b2c3d4-e5f6-7890-abcd-ef1234567890", "expiresAt": "2026-03-24T12:00:00.000Z", "isPermanent": false, "createdAt": "2026-03-23T12:00:00.000Z"}