🎯

webhook-handler-patterns

🎯Skill

from hookdeck/webhook-skills

VibeIndex|
What it does

Provides comprehensive webhook handler best practices, covering signature verification, idempotency, error handling, and framework-specific patterns for robust event processing.

πŸ“¦

Part of

hookdeck/webhook-skills(20 items)

webhook-handler-patterns

Installation

Quick InstallInstall with npx
npx skills add hookdeck/webhook-skills --list
Quick InstallInstall with npx
npx skills add hookdeck/webhook-skills --skill stripe-webhooks
Quick InstallInstall with npx
npx skills add hookdeck/webhook-skills --skill stripe-webhooks --skill shopify-webhooks
πŸ“– Extracted from docs: hookdeck/webhook-skills
8Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

>

Overview

# Webhook Handler Patterns

When to Use This Skill

  • Following the correct webhook handler order (verify β†’ parse β†’ handle idempotently)
  • Implementing idempotent webhook handlers
  • Handling errors and configuring retry behavior
  • Understanding framework-specific gotchas (raw body, middleware order)
  • Building production-ready webhook infrastructure

Resources

Handler Sequence

  • [references/handler-sequence.md](references/handler-sequence.md) - Verify first, parse second, handle idempotently third

Best Practices

  • [references/idempotency.md](references/idempotency.md) - Prevent duplicate processing
  • [references/error-handling.md](references/error-handling.md) - Return codes, logging, dead letter queues
  • [references/retry-logic.md](references/retry-logic.md) - Provider retry schedules, backoff patterns

Framework Guides

  • [references/frameworks/express.md](references/frameworks/express.md) - Express.js patterns and gotchas
  • [references/frameworks/nextjs.md](references/frameworks/nextjs.md) - Next.js App Router patterns
  • [references/frameworks/fastapi.md](references/frameworks/fastapi.md) - FastAPI/Python patterns

Quick Reference

Handler Sequence

  1. Verify signature first β€” Use raw body; reject invalid requests with 4xx.
  2. Parse payload second β€” After verification, parse or construct the event.
  3. Handle idempotently third β€” Check event ID, then process; return 2xx for duplicates.

See [references/handler-sequence.md](references/handler-sequence.md) for details and links to provider verification and idempotency patterns.

Response Codes

| Code | Meaning | Provider Behavior |

|------|---------|-------------------|

| 2xx | Success | No retry |

| 4xx | Client error | Usually no retry (except 429) |

| 5xx | Server error | Retry with backoff |

| 429 | Rate limited | Retry after delay |

Idempotency Checklist

  1. Extract unique event ID from payload
  2. Check if event was already processed
  3. Process event within transaction
  4. Store event ID after successful processing
  5. Return success for duplicate events

Related Skills

  • [stripe-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/stripe-webhooks) - Stripe payment webhook handling
  • [shopify-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/shopify-webhooks) - Shopify e-commerce webhook handling
  • [github-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/github-webhooks) - GitHub repository webhook handling
  • [resend-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/resend-webhooks) - Resend email webhook handling
  • [chargebee-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/chargebee-webhooks) - Chargebee billing webhook handling
  • [clerk-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/clerk-webhooks) - Clerk auth webhook handling
  • [elevenlabs-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/elevenlabs-webhooks) - ElevenLabs webhook handling
  • [openai-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/openai-webhooks) - OpenAI webhook handling
  • [paddle-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/paddle-webhooks) - Paddle billing webhook handling
  • [hookdeck-event-gateway](https://github.com/hookdeck/webhook-skills/tree/main/skills/hookdeck-event-gateway) - Production webhook infrastructure (routing, replay, monitoring)

More from this repository10

🎯
stripe-webhooks🎯Skill

Securely receives, verifies, and processes Stripe webhook events with signature validation and event handling.

🎯
shopify-webhooks🎯Skill

Manages and processes Shopify webhooks, enabling seamless event handling and synchronization for e-commerce integrations.

🎯
github-webhooks🎯Skill

Receives and processes GitHub webhook events, enabling real-time tracking and automated actions for repository activities.

🎯
resend-webhooks🎯Skill

Automatically resends failed webhooks to a specified destination, ensuring reliable event delivery and minimizing missed notifications.

🎯
clerk-webhooks🎯Skill

Manages and routes Clerk authentication webhooks, enabling seamless event handling and synchronization for user-related actions.

🎯
sendgrid-webhooks🎯Skill

Receives and processes SendGrid webhook events, enabling real-time tracking and handling of email delivery, engagement, and status updates.

🎯
replicate-webhooks🎯Skill

Replicates and routes incoming webhooks to multiple destinations with configurable filtering and transformation rules.

🎯
elevenlabs-webhooks🎯Skill

Sends and validates webhook events from ElevenLabs text-to-speech API to specified endpoints with robust error handling.

🎯
openai-webhooks🎯Skill

Manages and routes OpenAI webhook events, enabling seamless integration and event handling for AI-powered applications.

🎯
fusionauth-webhooks🎯Skill

Sends and manages webhook events from FusionAuth to external services using Hookdeck's integration platform.