Skip to content

Webhook Payload ExplainerNew

Explain Stripe, GitHub and Slack webhook samples, field by field.

Runs in your browser · free · no sign-up

Stripe sends an Event object. You verify the signature, then read type and data.object.

Sample event: payment_intent.succeeded. IDs and emails are invented for this page.

id: "evt_1Nsample000000000000000"
object: "event"
type: "payment_intent.succeeded"
created: 1763078400
livemode: false
id: "pi_3Nsample000000000000000"
object: "payment_intent"
amount: 2599
currency: "usd"
status: "succeeded"
customer: "cus_sample123"
}
}
}
  • id

    Unique event id. Store it to ignore duplicate deliveries.

  • type

    The event name you branch on, such as payment_intent.succeeded.

  • livemode

    false for test mode data; never mix this with live side effects.

  • data.object

    The API object that changed. Here, the PaymentIntent.

  • data.object.amount

    Integer in the smallest currency unit (cents for USD).

  • data.object.status

    succeeded means the funds captured for this intent.

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

  1. 1Pick Stripe, GitHub or Slack to load an annotated sample.
  2. 2Read the field notes, or paste your own JSON to view the tree.
  3. 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.

Related tools

GraphQL Formatter & TesterNewPretty-print GraphQL and run queries against an endpoint.
HTTP Headers ParserNewParse headers and audit CORS, cache and cookie flags.
URL Query BuilderNewParse a URL into parts and rebuild the query string from a table.
API TesterNewSend HTTP requests and inspect JSON responses in your browser.