01What is Webhook Payload Builder?
Writing a webhook handler is awkward when the real event only fires after a push, a payment or a deploy. This builder gives you a sample body to test with straight away. Pick a provider and an event, and you get the JSON payload, the headers it would arrive with, and a cURL command that posts both. GitHub covers push, pull_request, issues and release. A push payload has ref, before and after SHAs, the repository, pusher, sender, a commits array and head_commit. Headers include X-GitHub-Event set to the event name, a fresh X-GitHub-Delivery UUID from crypto.randomUUID, and an X-Hub-Signature-256 placeholder. These follow the field names in GitHub's webhook events documentation. Stripe covers payment_intent.succeeded, customer.created, invoice.paid and customer.subscription.updated. Each one sits inside an event envelope with object "event", api_version 2023-10-16, a created Unix timestamp, livemode false and a data.object holding the resource. The event ID is evt_ plus the current time in milliseconds, so it will not look like a real Stripe ID. Slack gives a Block Kit deployment message, Discord gives an embed with three fields and a footer, and Custom gives a tiny event object. A worked example: choose Stripe and invoice.paid. The data.object is invoice in_abc123 for customer cus_xyz, amount_paid 4999 in usd, status paid, with period_start set exactly 30 days (2,592,000 seconds) before period_end. The headers list shows Content-Type and a Stripe-Signature placeholder. We are upfront about what these are. They are hand-written samples trimmed to the commonly used fields, not captured from live accounts. Real events carry many more fields, so check the provider docs for anything your code depends on. Names, SHAs and IDs are made up, and timestamps use the current time, so the JSON changes slightly on every load. The cURL command posts to https://example.com/webhook. It wraps every header and the body in POSIX single quotes and escapes any apostrophe, so the release notes text "What's Changed" survives in bash and zsh. Signature headers are placeholders, not real HMACs. A handler that verifies signatures will reject these requests until you sign them yourself. The page builds everything in your browser and sends nothing.
Backend developers who need a realistic GitHub, Stripe, Slack or Discord payload to test a webhook route before the real event ever fires. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Webhook Payload Builder
- Choose a Provider: GitHub, Stripe, Slack, Discord or Custom
- For GitHub or Stripe, pick an Event from the second dropdown
- Read the Payload box and the Headers list beside it
- Copy the cURL Command and swap https://example.com/webhook for your own URL
- Click Copy Payload to keep the JSON as a test fixture
03Worked examples
- Input:
Provider: GitHub, Event: push - Result:
{"ref":"refs/heads/main","before":"6113728f...","after":"f95f852b...","repository":{"full_name":"example-user/example-repo",...},"commits":[{"message":"feat: add new feature","added":["src/new-file.ts"],"modified":["src/index.ts"]}],...} - Trimmed. SHAs are shortened here and some repository and sender fields are left out.
- Input:
Provider: Stripe, Event: invoice.paid - Result:
{"id":"evt_1795626958815","object":"event","api_version":"2023-10-16","type":"invoice.paid","livemode":false,"data":{"object":{"id":"in_abc123","amount_paid":4999,"currency":"usd","status":"paid","subscription":"sub_123",...}}} - Trimmed. The evt_ number and timestamps come from the current time, so yours will differ.
- Input:
Provider: GitHub, Event: pull_request - Result:
{"action":"opened","number":42,"pull_request":{"state":"open","title":"Add new feature","head":{"ref":"feature-branch",...},"base":{"ref":"main",...},"draft":false,"mergeable":true,...},...} - Trimmed to the fields most handlers read.
- Input:
Provider: Discord - Result:
{"content":null,"embeds":[{"title":"Build Notification","color":3066993,"fields":[{"name":"Status","value":"Success","inline":true},...],"footer":{"text":"CI/CD Pipeline"}}],"username":"Deploy Bot"} - Trimmed. Color 3066993 is the decimal form of a green hex colour, as Discord expects.
- Input:
Provider: GitHub, Event: release (cURL body) - Result:
--data-raw '{"action":"published","release":{"tag_name":"v1.0.0","body":"## What'\''s Changed\n- New feature\n- Bug fix",...}}' - Trimmed. The apostrophe is closed, escaped and reopened so the shell keeps it.
04Common use cases
- Posting a fake GitHub push event to a local Express or FastAPI route while you build CI automation
- Checking that your Stripe handler reads data.object.amount_paid from invoice.paid before you go live
- Seeing whether a pull_request handler picks up head.ref and base.ref correctly
- Pasting the Slack or Discord payload with your own incoming webhook URL to preview the message in a test channel
- Saving payloads as JSON fixtures for unit tests of webhook parsing code
- Showing a teammate the rough shape of an event before they wire up their side
05Tips
- To test signature checks, sign the body yourself. GitHub's X-Hub-Signature-256 is an HMAC-SHA256 of the raw body, and Stripe signs the timestamp, a period and the body.
- Verify against the raw request bytes. Re-serialising parsed JSON changes spacing and breaks the hash.
- The X-GitHub-Delivery ID changes each time you switch event, which is handy for testing duplicate-delivery handling.
- Once your handler works with these samples, use the Stripe CLI listen command or GitHub's Redeliver button to try real events.
- Swap the Content-Type header if you need to test a form-encoded handler. GitHub can send application/x-www-form-urlencoded too.
06Related concepts
webhooks, HMAC signature, Block Kit, event payload, cURL.
Frequently Asked Questions
What is Webhook Payload Builder?
Webhook Payload Builder is a free, browser-based developer tool on AIDToolStack. Build webhook payloads for GitHub, Stripe, Slack It requires no installation or sign-up and works entirely in your browser.
Is Webhook Payload Builder free to use?
Yes. No sign-up, no fees and no usage cap.
Does Webhook Payload Builder store my data?
No. It runs in your browser; nothing is uploaded.