360 Secure SkillHub
360 安全技能中心

Inngest

该 Skill 提供一组 curl 命令模板,用于调用 Inngest 平台接口:发送单个或批量事件、列出与查询函数运行、取消运行、重放失败运行、列出已注册应用。依赖 INNGEST_EVENT_KEY 与 INNGEST_SIGNING_KEY 环境变量,需联网并具备 Bash 与 curl 环境。

分类:自动化
dwhite-oss
dwhite-oss
热度 23.15
最近更新 2026-05-11 17:37:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dwhite-oss/inngest
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
inngest
description
Manage Inngest serverless background jobs and event-driven workflows via REST API. Use when asked to send events, trigger functions, list runs, cancel jobs, or inspect workflow history. Requires INNGEST_EVENT_KEY and INNGEST_SIGNING_KEY env vars.

Inngest Skill

Base event ingestion URL: https://inn.gs/e/<INNGEST_EVENT_KEY> Management API base: https://api.inngest.com/v1

Auth

# Send an event (key in URL)
curl -X POST "https://inn.gs/e/$INNGEST_EVENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"app/user.signup","data":{"userId":"123"}}'

# Management API
curl -H "Authorization: Bearer $INNGEST_SIGNING_KEY" \
  https://api.inngest.com/v1/runs

Common Operations

Send a single event:

curl -X POST "https://inn.gs/e/$INNGEST_EVENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"app/order.created","data":{"orderId":"ord_123","total":49.99},"user":{"id":"usr_456"}}'

Send a batch of events:

curl -X POST "https://inn.gs/e/$INNGEST_EVENT_KEY" \
  -H "Content-Type: application/json" \
  -d '[{"name":"app/email.sent","data":{"to":"a@example.com"}},{"name":"app/email.sent","data":{"to":"b@example.com"}}]'

List function runs:

curl -H "Authorization: Bearer $INNGEST_SIGNING_KEY" \
  "https://api.inngest.com/v1/runs?limit=20&status=running"

Get a specific run:

curl -H "Authorization: Bearer $INNGEST_SIGNING_KEY" \
  "https://api.inngest.com/v1/runs/$RUN_ID"

Cancel a function run:

curl -X DELETE \
  -H "Authorization: Bearer $INNGEST_SIGNING_KEY" \
  "https://api.inngest.com/v1/runs/$RUN_ID"

List all registered apps:

curl -H "Authorization: Bearer $INNGEST_SIGNING_KEY" \
  "https://api.inngest.com/v1/apps"

Replay a failed run:

curl -X POST \
  -H "Authorization: Bearer $INNGEST_SIGNING_KEY" \
  "https://api.inngest.com/v1/runs/$RUN_ID/replay"

Tips

  • Event names follow domain/noun.verb convention (e.g. app/user.created)
  • Batch up to 512 events per POST to reduce HTTP overhead
  • The user.id field enables per-user throttle and concurrency controls
  • Filter runs by status (running, completed, failed, cancelled) to keep responses lean