omni-webhooks
它能做什么
这项技能展示如何设置 Webhook,把 OmniRoute 事件发送到其他系统。适合想在请求成功、失败或达到配额时获得提醒或自动化处理的开发者。
适用场景
- ✓当用户想在请求失败或完成时收到通知的时候。
- ✓当用户想在超出配额时收到警报的时候。
- ✓当用户想测试或删除已有的 Webhook 的时候。
技能链接
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-webhooks/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在请求失败或我的配额超出时给我发送一个 Webhook。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能列出创建、读取、更新和删除 Webhook,以及查看投递记录的调用。你可以选择订阅哪些事件,投递重试由系统管理。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Overview
Register, list, test, and remove webhook endpoints. Configure event subscriptions (request.completed, request.failed, quota.exceeded, etc.) and manage delivery retries.
Authentication
All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.
Endpoints
GET /api/webhooks
GET webhooks
curl http://localhost:20128/api/webhooks \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/webhooks
POST webhooks
curl -X POST http://localhost:20128/api/webhooks \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/webhooks/{id}
GET webhooks › <id>
curl http://localhost:20128/api/webhooks/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
PUT /api/webhooks/{id}
PUT webhooks › <id>
curl -X PUT http://localhost:20128/api/webhooks/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE /api/webhooks/{id}
DELETE webhooks › <id>
curl -X DELETE http://localhost:20128/api/webhooks/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/webhooks/{id}/deliveries
GET webhooks › <id> › deliveries
curl http://localhost:20128/api/webhooks/{id}/deliveries \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/webhooks/{id}/test
POST webhooks › <id> › test
curl -X POST http://localhost:20128/api/webhooks/{id}/test \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
POST /api/webhooks/validate-url
POST webhooks › validate url
curl -X POST http://localhost:20128/api/webhooks/validate-url \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Payloads
See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.
常见问题
我能订阅哪些事件?
这项技能提到的事件包括请求完成、请求失败和超出配额等。
投递失败会怎样?
这项技能说明投递重试由系统管理,并且可以为每个 Webhook 查看投递记录。
我能测试 Webhook 吗?
可以。这项技能涵盖测试 Webhook 端点的方法。
详情
作者的原始描述
Register, list, test, and remove webhook endpoints. Configure event subscriptions (request.completed, request.failed, quota.exceeded, etc.) and manage delivery retries.
热度
- GitHub 星标
- 84k
- 排名
- #1440
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …