About the Webhook Payload Explainer
Webhook JSON is easy to skim and easy to misread. These annotated samples walk through the fields you actually branch on, and you can paste a payload to view it as a tree.
Stripe, GitHub and Slack all POST JSON to your server, but they wrap the useful object in different envelopes. Missing that is a common source of “undefined id” bugs. This explainer ships three annotated samples so you can see which fields are event identifiers, which are the inner object, and which exist only for retries or livemode checks.
The Stripe sample is a payment_intent.succeeded event: you branch on type, store id for idempotency, and read amount as an integer in the smallest currency unit. The GitHub sample is a push event, where ref and after tell a CI job what to build, and X-Hub-Signature-256 would be verified on the server. The Slack sample shows event_callback wrapping a message, and mentions the earlier url_verification challenge you must echo during setup.
You can paste your own JSON to inspect it as a tree. Samples use obviously fake ids and example.test contacts. Signature verification is deliberately out of scope; secrets for those checks belong on a server, not in a browser page.
How to use the Webhook Payload Explainer
- 1Pick Stripe, GitHub or Slack to load an annotated sample.
- 2Read the field notes, or paste your own JSON to view the tree.
- 3Use the notes as a checklist when writing a handler.
Key features
- Stripe, GitHub and Slack annotated samples.
- Field-by-field notes next to a JSON tree.
- Paste your own payload to inspect the structure.
- No live network calls and no signature checking in the browser.
Practical uses
- Writing a first webhook handler and wanting a map of the body.
- Explaining to a teammate which id to persist for idempotency.
- Comparing vendor envelopes without opening three documentation tabs.
Tips and common mistakes
- Always verify vendor signatures on the server before you trust the body.
- Store the event id and ignore retries you have already processed.
- Keep test-mode Stripe events away from live side effects by checking livemode.
Limitations
- Only three vendors are annotated in depth. Other providers can still be pasted as JSON, without field notes.
- This page does not send replies or retry deliveries.
Privacy
Pasted payloads stay in the tab. Prefer samples or anonymised fixtures on a shared display.
Frequently asked questions
Are these live events?
No. They are invented demo payloads so you can learn the shape safely.
Does this verify signatures?
No. Signature checks belong on your server, where the secret stays.
Can I paste a real webhook?
Yes, it is parsed only in this tab. Avoid doing that on a shared screen.
Will you add more vendors?
The three included here cover payments, git hosting and chat, which is enough to show how envelopes differ. More can be added later without changing the idea.
Why is the Stripe amount 2599?
Stripe uses minor units, so 2599 is 25.99 in USD. The note exists so that value is not mistaken for 2599 dollars.