跳到正文
Skillpedia
API 与服务器(后端)84k · #1440

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-webhooks/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在请求失败或我的配额超出时给我发送一个 Webhook。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能列出创建、读取、更新和删除 Webhook,以及查看投递记录的调用。你可以选择订阅哪些事件,投递重试由系统管理。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

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.

repo: cheaper-inference/OmniRoute

热度

GitHub 星标
84k
排名
#1440
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能