api-webhook-integration
Installation
SKILL.md
API and Webhook Integration
Workflow
- Define source of truth, event contract, authentication, delivery identifier and failure semantics.
- Validate event type and payload schema; preserve raw body when signature schemes require exact bytes.
- Verify signatures before trusting payload data and add replay/timestamp controls according to provider semantics.
- Make processing idempotent using stable provider/business identifiers and database uniqueness where possible.
- Acknowledge quickly and queue slow work. Never assume providers share the same timeout/retry policy.
- Design for duplicates, redelivery, out-of-order events and partial downstream failure.
- Log correlation/delivery IDs and outcomes without sensitive payload leakage.
- Keep critical validation/auth outside n8n when n8n is only orchestration.
Conditional references
- Signatures and replay →
references/security.md. - Idempotency/order →
references/idempotency.md. - Provider delivery/retry differences →
references/provider-behavior.md.
Available scripts
scripts/verify-hmac.py— offline HMAC verification helper for fixtures/debugging.
Asset
Use assets/handler-checklist.md during implementation review.