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:
- method,
- URL template,
- authentication type,
- headers,
- query params,
- body schema,
- pagination,
- rate limits,
- success response shape,
- error response shape,
- retry policy,
- idempotency key.
API Sync Pattern
Use this flow for most source-to-target syncs:
- Trigger: schedule/manual/webhook.
- Load cursor/checkpoint.
- Fetch page from source API.
- Normalize source items.
- Validate required fields.
- Lookup target by stable external ID.
- Branch create/update/no-change.
- Write target record.
- Log per-item result.
- Save checkpoint.
- 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
- Prefer cursor pagination over page numbers when available.
- Save cursor only after successful processing of a page.
- Add max page guard.
- Add wait/backoff between pages if API is rate-limited.
- If using page numbers, capture last successful page and total pages if available.
Webhook Intake Pattern
- Receive request.
- Verify method and signature.
- Parse payload.
- Normalize into canonical event object.
- Respond quickly if long processing is needed.
- Process asynchronously or call sub-workflow.
- 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:
- use API key authentication documented for the instance,
- use pagination when listing large collections,
- do not hardcode API keys,
- prefer workflow export/import through supported UI/CLI/API paths,
- maintain environment-specific base URLs separately.
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: