Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/n8n skills/Integrations-api-webhooks
Reference · n8n skills

Integrations-api-webhooks

Part of n8n skills. Install the skill and your agent reads this page when it needs the depth.

Integrations, API, Webhooks, and Sync Patterns

HTTP/API Node Design

For each external API call document:

API Sync Pattern

Use this flow for most source-to-target syncs:

  1. Trigger: schedule/manual/webhook.
  2. Load cursor/checkpoint.
  3. Fetch page from source API.
  4. Normalize source items.
  5. Validate required fields.
  6. Lookup target by stable external ID.
  7. Branch create/update/no-change.
  8. Write target record.
  9. Log per-item result.
  10. Save checkpoint.
  11. Emit summary.

Upsert Contract

{
  "source_system": "string",
  "source_id": "string",
  "dedupe_key": "source_system:source_id",
  "operation": "create | update | skip | conflict",
  "target_id": "string|null",
  "changes": {},
  "observed_at": "ISO-8601"
}

Pagination Pattern

Webhook Intake Pattern

  1. Receive request.
  2. Verify method and signature.
  3. Parse payload.
  4. Normalize into canonical event object.
  5. Respond quickly if long processing is needed.
  6. Process asynchronously or call sub-workflow.
  7. Log final result.

cURL Import Risk

When users import cURL into HTTP Request nodes, auth headers may be carried into workflow JSON. Generated public workflows must avoid this; use credential placeholders instead.

n8n API Usage

When using the n8n public API:

Integration Spec Template

### Integration: <name>

- Source system:
- Target system:
- Trigger:
- Auth method:
- Required credentials:
- Input schema:
- Output schema:
- Upsert key:
- Pagination:
- Rate limit:
- Retry policy:
- Error policy:
- Test payload:

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.