🪝

Webhook Handler Template

Verified

by Community

Generates webhook handler implementations with signature verification, idempotency, retry handling, and proper error responses. Covers common webhook sources like Stripe, GitHub, Slack, and custom webhook integrations.

webhookseventshandlersapiintegration

Webhook Handler Template

Create secure webhook handlers with signature verification, idempotency, and proper error handling.

Usage

Describe the webhook source and events you need to handle, and this skill will generate a secure handler.

Examples

  • "Create a webhook handler for Stripe payment events"
  • "Build a GitHub webhook handler for push and PR events"
  • "Implement a generic webhook receiver with signature verification"

Guidelines

  • Always verify webhook signatures to prevent forgery
  • Implement idempotency to handle duplicate deliveries safely
  • Return 200 quickly and process events asynchronously
  • Log raw payloads for debugging delivery issues
  • Set up retry logic for failed webhook processing