Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Webhook Delivery?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-webhook-delivery)
---
description: Build secure, reliable inbound and outbound webhooks with HMAC verification, replay protection, backoff, and DLQs
profile: standard
tags: api, webhooks, security, backend
---
# Webhook delivery
Use when sending webhook notifications to customers or receiving third-party webhooks safely.
## Receiving webhooks safely
- Verify HMAC signatures over the raw request body bytes (before JSON parsing/re-serialization) using constant-time comparison (`crypto.timingSafeEqual`).
- Enforce a bounded timestamp tolerance window (e.g., 5 minutes) alongside unique event ID deduplication to stop replay attacks and duplicate deliveries.
- Return `200`/`202` fast after signature verification and durable enqueueing—never process heavy downstream work synchronously inside the HTTP handler.
## Sending webhooks reliably
- Sign every delivery with an explicit versioned header, rotated secret support (dual signing during rotation), and short connect/request timeouts (`5–10s`).
- Retry `5xx`/network timeouts with exponential backoff + jitter and move persistent failures cleanly to an inspectable dead-letter queue with manual replay.
## Verify
Test invalid signatures, expired timestamps, duplicate event deliveries, timeout handling, and dead-letter recovery end-to-end.