← 返回
内容创作 Key 中文

n8n Hub

Centralized n8n hub for designing reliable flows (idempotency, retries, HITL) and operating them via the public REST API. Use for planning, JSON output, and lifecycle actions like list/publish/debug.
集中式 n8n 中心,用于设计可靠流程(支持幂等性、重试、HITL)并通过公共 REST API 运行。适用于规划、JSON 输出以及列表/发布/调试等生命周期操作。
codedao12
内容创作 clawhub v1.0.0 1 版本 99431.2 Key: 需要
★ 3
Stars
📥 2,912
下载
💾 332
安装
1
版本
#latest

概述

n8n Hub

This skill merges two tracks:

1) Design: plan dependable workflows and optionally emit workflow.json.

2) Operate: handle workflows/executions via the public REST API.

Availability

  • Public API access is disabled on free trial plans.
  • An upgraded plan is required to use the API.

Configuration

Suggested environment variables (or store in .n8n-api-config):

export N8N_API_BASE_URL="https://your-instance.app.n8n.cloud/api/v1"  # or http://localhost:5678/api/v1
export N8N_API_KEY="your-api-key-here"

Create an API key at: n8n Settings → n8n API → Create an API key.

Use this skill when

  • You want a workflow built for idempotency, retries, logging, and review queues.
  • You need importable workflow.json plus a runbook template.
  • You want to list, publish, deactivate, or debug workflows/executions via API.

Do not use when

  • You need pure code automation without n8n.
  • You want to bypass security controls or conceal audit trails.

Inputs

Required

  • Trigger type + schedule/timezone
  • Success criteria and destinations (email/Drive/DB)

Optional

  • Existing workflow JSON
  • Sample payloads/records
  • Dedup keys

Outputs

  • Default: design spec (nodes, data contracts, failure modes)
  • On request: workflow.json + workflow-lab.md (from assets/workflow-lab.md)

Auth header

All requests must include:

X-N8N-API-KEY: $N8N_API_KEY

Quick actions (API)

Workflows: list

curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_BASE_URL/workflows" \
  | jq '.data[] | {id, name, active}'

Workflows: details

curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_BASE_URL/workflows/{id}"

Workflows: activate or deactivate

# Activate (publish)
curl -s -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"versionId":"","name":"","description":""}' \
  "$N8N_API_BASE_URL/workflows/{id}/activate"

# Deactivate
curl -s -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_API_BASE_URL/workflows/{id}/deactivate"

Webhook trigger

curl -s -X POST "$N8N_API_BASE_URL/../webhook/{webhook-path}" \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}'

Executions: list

curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_API_BASE_URL/executions?limit=10" \
  | jq '.data[] | {id, workflowId, status, startedAt}'

Executions: retry

curl -s -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"loadWorkflow":true}' \
  "$N8N_API_BASE_URL/executions/{id}/retry"

Design workflow checklist

  1. Confirm trigger type and schedule/timezone.
  2. Define inputs, outputs, and validation rules.
  3. Choose dedup keys to keep runs idempotent.
  4. Add observability (run_id, logs, status row).
  5. Add retry policy and error branches.
  6. Send failures to a review queue.
  7. Add guardrails to prevent silent failure.

Endpoint index

See assets/endpoints-api.md for the complete endpoint list.

Notes and tips

  • The API playground is available only on self-hosted n8n and uses real data.
  • The n8n API node can call the public API from within workflows.
  • Webhook URLs do not require the API key header.
  • Execution data can be pruned by retention settings.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 13:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 294 📥 136,401
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,131
developer-tools

Telegram

codedao12
{"answer":"使用直接HTTPS请求(无SDK)设计Telegram Bot API工作流及命令驱动对话的OpenClaw技能。"}
★ 25 📥 19,817