Skip to main content

Webhook Tester

Generate realistic webhook test payloads for GitHub, Stripe, Slack, and custom services. Pick a service, customize the payload, enter your endpoint URL, and get a ready-to-run curl command to send the test request to your local handler.

✓ GitHub, Stripe, Slack presets ✓ Editable payload & headers ✓ curl command generator

Frequently Asked Questions

What is a webhook and how do I test one?▼

A webhook is an HTTP POST request that one service sends to another when an event occurs (e.g., GitHub sends a push event, Stripe sends a payment event). To test a webhook handler, you need to send a realistic payload to your endpoint with the right headers. This tool generates accurate sample payloads for popular services and gives you a curl command to send them from your terminal.

Why do I need to use curl instead of sending directly from the browser?▼

Browsers enforce CORS (Cross-Origin Resource Sharing) policies, so a browser-based tool can't send POST requests to arbitrary endpoints on localhost or other domains. curl runs outside the browser and can send requests anywhere — making it the standard way to test webhook endpoints during local development.

How do I verify webhook signatures?▼

Most services sign webhook payloads using HMAC-SHA256 with a secret key. GitHub uses X-Hub-Signature-256, Stripe uses Stripe-Signature (with timestamp + signature), and Slack uses X-Slack-Signature. Your handler should validate this signature against the raw request body before processing. The sample headers in this tool show placeholder signatures — replace them with real ones from your service dashboard.

How do I test webhooks with a local dev server?▼

Use a tunneling tool like ngrok (ngrok http 3000) or Cloudflare Tunnel to expose your local port to the internet. Copy the public URL, register it in your service's webhook settings, and trigger real events. For faster iteration without real events, use this tool to generate curl commands that replicate the exact payload format — no internet required.

What headers does a GitHub webhook include?▼

GitHub webhooks include: Content-Type (application/json or application/x-www-form-urlencoded), X-GitHub-Event (the event name, e.g. push, pull_request), X-GitHub-Delivery (a UUID for the delivery), X-Hub-Signature (HMAC-SHA1 of the body, deprecated), and X-Hub-Signature-256 (HMAC-SHA256, preferred). Always validate X-Hub-Signature-256 against your webhook secret.

How do I handle Stripe webhook signatures correctly?▼

Stripe's Stripe-Signature header contains a timestamp (t=) and one or more signatures (v1=). To verify: 1) extract the timestamp, 2) construct the signed payload string as timestamp + '.' + raw body, 3) compute HMAC-SHA256 of that string using your endpoint's signing secret, 4) compare against the v1 signature. Never parse JSON before signature verification — you need the raw body bytes. Use Stripe's official SDK webhooks.constructEvent() method.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

OpenAPI Validator HTTP Status Code Reference API Request Builder API Response Mock Generator HTTP Status Code Reference HTTP Status Code Lookup HTTP Status Code Lookup API Response Time Tester HTTP Methods Reference OpenAPI Schema Validator OpenAPI Mock Generator API Test Case Generator API Response Formatter & Analyzer HTTP API Tester HTTP Status Code Reference API Mock Server Config Generator REST API Request Builder Jest Testing Framework Guide API Response Mocker HTTP Headers Analyzer API Rate Limit Calculator HTTP Headers Inspector HTTP Code Snippet Generator HTTP Mock Response Builder LLM Cost Calculator HTTP Cache-Control Builder HTTP Header Analyzer AI Prompt Cost Calculator HTTP/2 Server Push Headers Builder Vitest Guide — Vite-native Testing Cypress Frontend Testing Guide Mock Service Worker (MSW) API Mocking Guide HTTP Security Headers Checker LLM Prompt Cost Calculator AI Rate Limit Calculator HTTP Cache Header Builder API Key Generator AI Doc Generator — Pro Tool AI Unit Test Generator — Pro Tool curl Command Builder HTTP Security Headers Generator JSON Diff Viewer JSON Diff Developer Utilities Rate Limiter Tester API Changelog Generator Rate Limit Calculator CORS Policy Builder Haproxy Config Validator Caddy Caddyfile Generator HAR Diff Analyzer Vue Component Generator LLM Context Window Calculator LLM Token Counter k6 Load Test Script Generator Playwright E2E Test Generator SSL Certificate Checker Prompt Token Estimator Playwright E2E Testing Guide Pulumi Modern IaC Guide HTML5 Canvas API Playground Prompt Injection Tester Token Context Calculator OpenAI Function Calling Generator Token Counter & Cost Estimator AI API Rate Limit Calculator React Component Generator

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →