TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Get a signed sample event for testing signature verification

GEThttps://api.testingapis.com/api/webhooks/samples/{provider}Sign in to see this endpoint's URL

Signature schemes: <list type="bullet"><item><description>Stripe: Stripe-Signature: t=..,v1=hex(HMAC-SHA256(secret, "t.body"))</description></item><item><description>GitHub: X-Hub-Signature-256: sha256=hex(HMAC-SHA256(secret, body))</description></item><item><description>Shopify: X-Shopify-Hmac-Sha256: base64(HMAC-SHA256(secret, body))</description></item></list> Payloads and signatures are deterministic.

Parameters 2

NameTypeDescription
providerrequiredpath · stringstripe, github or shopify (case-insensitive).
formatquery · stringOmit to receive the raw signed body with the provider's signature headers. Use envelope to receive body, headers and secret as JSON.

Responses

200
The signed sample.
404
Unknown provider.

Example

Request
curl -X GET "https://api.testingapis.com/api/webhooks/samples/stripe" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "id": "evt_1PqAbC2eZvKYlo2C",
  "object": "event",
  "api_version": "2024-06-20",
  "created": 1721300000,
  "type": "payment_intent.succeeded",
  "livemode": false,
  "data": {
    "object": {
      "id": "pi_3PqAbC2eZvKYlo2C0x1y2z3a",
      "object": "payment_intent",
      "amount": 2000,
      "currency": "usd",
      "status": "succeeded",
… (6 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.