Implement a webhook handler
Handle incoming webhooks securely with signature verification, event routing, and correct HTTP responses. Works with providers like GitHub or Stripe.
Preview
Copy prompt
Write a webhook handler in [Language/Framework] that receives POST requests from [Service, e.g. GitHub, Stripe]. Verify the request signature using the shared secret before processing any payload. Parse the event type, route each event to its own handler function, and return the correct HTTP status codes for success, invalid signature, unrecognised event type, and unexpected server errors.
More
Code Generation
Prompts
