사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/jpeetz/agent-skills --skill n8n-api-shape시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
n8n REST API — Shape Reference (instance-agnostic)
A reusable, instance-agnostic reference for the n8n REST API. Usable on any n8n instance (a client's fresh one, or your own) without hardcoding host, instance, or workflow IDs.
When to Use This Skill
Use this skill when:
- You need to read, update, or verify an n8n workflow via the REST API.
- Prior skills point at a SPECIFIC n8n instance (a host/workflow ID) that does
not apply to the instance you're touching now.
- You hit
400 additional propertieson workflow PUT.
Auth
- Header:
X-N8N-API-KEY: <key>(generate at Settings → API; store in the vault by label). - Base:
https://<n8n-host>/api/v1/.
Read a workflow (GET)
GET /api/v1/workflows/{id} → returns the workflow JSON.
Update a workflow (PUT) — the exact recipe that works
n8n rejects extra fields on PUT with 400 additional properties. Strip to a minimal 4-key payload:
import json, requests
wf = requests.get(f"{base}/workflows/{wf_id}",
headers={"X-N8N-API-KEY": key}, timeout=20).json()
for node in wf["nodes"]:
for k in ["id", "position", "credentials", "webhookId"]:
node.pop(k, None)
payload = {
"name": wf["name"],
"nodes": wf["nodes"],
"connections": wf["connections"],
"settings": {"executionOrder": wf["settings"].get("executionOrder", "v1")},
}
r = requests.put(f"{base}/workflows/{wf_id}",
headers={"X-N8N-API-KEY": key, "Content-Type": "application/json"},
json=payload, timeout=20)
assert r.status_code == 200, r.textBanned top-level fields on PUT: id, active, tags, versionId, pinData, staticData, createdAt, updatedAt, meta, activeVersionId, versionCounter, triggerCount, shared, activeVersion, isArchived, description.
Health
GET /api/v1/health → {"status":"ok",...}. Check this first — an n8n instance whose API key is scoped wrong or host unreachable fails here before any workflow edit.
Guardrails
- The API key lives by label in the vault; never hardcode, never echo.
- Save the GET response to disk before editing (enables retry without re-fetch).
- Verify after every PUT (HTTP 200 + spot-check content).
- Never copy another instance's host/workflow IDs into a different profile.
PITFALLS
400 additional properties= payload has extra fields → use the strip recipe.- Check
/healthbefore assuming workflow edits are possible. credentialsmust be popped from nodes before PUT or n8n rejects the payload.

