跳转到内容

端点管理 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.1
Host: api.hooknexus.com
Authorization: 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"
}