Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)84k · #1440

omni-webhooks

Skill này làm gì

Skill này chỉ cách thiết lập webhook để gửi sự kiện OmniRoute đến các hệ thống khác. Skill dành cho lập trình viên muốn có cảnh báo hoặc tự động hóa khi yêu cầu thành công, thất bại hoặc chạm hạn mức.

Khi nào nên dùng

  • ✓Khi người dùng muốn được báo khi một yêu cầu thất bại hoặc hoàn thành.
  • ✓Khi người dùng muốn có cảnh báo khi vượt hạn mức.
  • ✓Khi người dùng muốn kiểm thử hoặc xóa một webhook hiện có.

Liên kết skill

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-webhooks/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-webhooks/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Gửi cho tôi một webhook mỗi khi có yêu cầu thất bại hoặc khi vượt hạn mức.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill liệt kê các lệnh gọi để tạo, đọc, cập nhật và xóa webhook, và xem các lần gửi. Bạn chọn các sự kiện để đăng ký, và việc thử gửi lại được quản lý.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

<!-- 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.

Câu hỏi thường gặp

Tôi có thể đăng ký những sự kiện nào?

Skill nêu tên các sự kiện như yêu cầu hoàn thành, yêu cầu thất bại và vượt hạn mức.

Điều gì xảy ra nếu một lần gửi thất bại?

Skill nói việc thử gửi lại được quản lý, và có thể kiểm tra các lần gửi của từng webhook.

Tôi có thể kiểm thử webhook không?

Có. Skill bao gồm việc kiểm thử các endpoint webhook.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
84k
Vị trí xếp hạng
#1440
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự