Webhook
网站 Cookie 管理接口与资源发布事件;写操作还需要 CSRF 和二次验证。
网站 Cookie 管理接口与资源发布事件;写操作还需要 CSRF 和二次验证。
选择接口查看参数、响应、代码示例并手动发送请求。也可以通过站点搜索查找接口名称、路径或参数。
| 方法 | 接口 | 路径 |
|---|---|---|
GET | 列出我的 Webhook 端点 | /api/webhooks/endpoints |
POST | 申请创建 Webhook 端点 | /api/webhooks/endpoints |
PATCH | 修改 Webhook 端点 | /api/webhooks/endpoints/{id} |
DELETE | 删除 Webhook 端点 | /api/webhooks/endpoints/{id} |
POST | 轮换 Webhook 签名密钥 | /api/webhooks/endpoints/{id}/rotate-secret |
GET | 列出端点订阅 | /api/webhooks/endpoints/{id}/subscriptions |
POST | 订阅资源发布或知识库更新 | /api/webhooks/endpoints/{id}/subscriptions |
DELETE | 删除资源订阅 | /api/webhooks/endpoints/{id}/subscriptions/{subscriptionId} |
GET | 查看投递记录 | /api/webhooks/endpoints/{id}/deliveries |
POST | 重试当前版本的失败投递 | /api/webhooks/endpoints/{id}/deliveries/{deliveryId}/retry |
完整契约:webhooks.json。