JSON Webhook Tester

Send test JSON webhook payloads to any endpoint, sign them with HMAC-SHA256, and inspect the response in seconds

Test your webhook endpoint without waiting for a real event. Paste your URL, pick a template or write your own JSON, add custom headers, optionally sign the request with HMAC-SHA256, and inspect the exact status, headers, and body your server returns.

Sent as X-Webhook-Event header

If provided, an X-Hub-Signature-256 header is computed from the payload + secret

Response

Configure your webhook payload and click Send Webhook

Why Developers Use This Webhook Tester

A real provider event is hard to trigger on demand. This tester lets you send a known payload to your endpoint right now, so you can see exactly how your handler behaves before wiring up a live integration.

  • Verify that your handler parses JSON and returns the status code you expect.
  • Reproduce a failing production webhook with a known, repeatable payload.
  • Check that signature validation accepts valid requests and rejects invalid ones.
  • Debug missing headers, wrong content types, and timeouts before going live.

Key Features

Feature What it does
Ready-made templates Start from Stripe, GitHub, Slack, Discord, or Zapier sample payloads.
Event type header Sends your event name as the X-Webhook-Event header.
Custom headers Add any header your endpoint expects, such as Authorization or X-Request-Id.
HMAC signature Computes an X-Hub-Signature-256 header from the payload and your secret.
Response inspector Shows response status, headers, body, duration, and size, with a copy button.
JSON editor Write or paste a payload, then validate and format it before sending.
Free to use No registration, no usage limits, and no installation.

How to Use

  1. Enter the webhook URL. Use a public HTTPS endpoint, such as a staging server or a temporary inbox from a webhook inspection service.
  2. Set the event type (optional). Sent as X-Webhook-Event, so your handler can route events such as invoice.paid or push.
  3. Compose the JSON payload. Write your own or load a template and edit the fields.
  4. Add custom headers. Include anything your service requires, such as X-Stripe-Signature or a bearer token.
  5. Add a signing secret (optional). The tool computes an HMAC-SHA256 digest of the body and sends it as X-Hub-Signature-256.
  6. Click Send Webhook. Read the response status, headers, and body below.
Tip: Change one thing at a time — a header, a field, or the secret — so you can tell exactly what caused a different response.

What Is a Webhook?

A webhook is an HTTP callback: when an event happens in one system, it sends an HTTP POST request containing event data to a URL you control. Instead of repeatedly asking "has anything changed?", your application is told the moment something happens.

Common examples include Stripe sending payment events, GitHub notifying you about code pushes, and Slack or Discord delivering messages to a channel. When testing an integration, you need to send sample payloads to your endpoint to verify parsing, headers, signatures, and responses — that is exactly what this tool does.

Webhook vs. API Polling

Webhook Polling
DirectionProvider pushes to youYou pull from provider
LatencyNear real timeDepends on poll interval
Wasted requestsFewMany; most polls return nothing
SetupPublic endpoint + verificationScheduled job
Failure handlingProvider retries (varies by provider)You retry

Anatomy of a Webhook Request

POST /webhooks/stripe HTTP/1.1
Host: example.com
Content-Type: application/json
X-Webhook-Event: invoice.paid
X-Hub-Signature-256: sha256=3f2a...c9d1

{"id":"evt_123","type":"invoice.paid","data":{"object":{"amount_paid":4900}}}
  1. Method: almost always POST.
  2. Headers: content type, event name, signature, and delivery ID.
  3. Body: a JSON object describing the event.
  4. Expected response: a fast 2xx to acknowledge receipt.

Common Webhook Events

Stripe

Event When it fires
charge.succeededA charge was completed
payment_intent.succeededA payment intent finished successfully
invoice.paidAn invoice was paid
customer.subscription.updatedA subscription changed (plan, status, quantity)
checkout.session.completedA Checkout session was completed

GitHub

Event When it fires
pushCommits are pushed to a branch or tag
pull_requestA PR is opened, closed, synchronized, and so on
issuesAn issue is opened, edited, or closed
releaseA release is published or edited
workflow_runA GitHub Actions workflow run is requested or completed

Slack / Discord

Type Use
Incoming WebhookPost a message to a channel
Slash CommandHandle /command invocations
Interaction (Slack)Buttons, menus, and modals
Message (Discord)Post content or embeds through a channel webhook
Interaction (Discord)Handle application commands and components

Sample Payloads

Minimal custom event

{
  "event": "order.created",
  "id": "evt_001",
  "created_at": "2026-12-02T09:30:00Z",
  "data": {
    "order_id": "ORD-1001",
    "amount": 49000,
    "currency": "IDR",
    "customer": { "id": "cus_42", "email": "user@example.com" }
  }
}

Simplified Stripe-style event

{
  "id": "evt_1Nxxxxxxxx",
  "object": "event",
  "type": "payment_intent.succeeded",
  "data": {
    "object": {
      "id": "pi_3Nxxxxxxxx",
      "amount": 4900,
      "currency": "usd",
      "status": "succeeded"
    }
  }
}

Simplified Slack-style incoming webhook message

{
  "text": "Deployment finished successfully",
  "blocks": [
    {
      "type": "section",
      "text": { "type": "mrkdwn", "text": "*Deploy complete* on `production`" }
    }
  ]
}

These are simplified for testing. Real provider payloads contain more fields; check each provider's documentation for the exact schema.

Webhook Signature Verification

Signatures let your server confirm that a request came from the expected sender and was not modified in transit. The tool's X-Hub-Signature-256 header uses the GitHub-style format: sha256= followed by the hex HMAC-SHA256 of the raw request body.

Important: providers differ. Stripe uses a Stripe-Signature header with a timestamp and signs timestamp.payload; Slack uses X-Slack-Signature with a v0:timestamp:body base string; Discord interactions use Ed25519 public-key signatures. This tool's signature is for GitHub-style verification and custom endpoints. To test provider-specific formats, add the exact header yourself using Custom Headers.

Node.js (Express)

import crypto from "crypto";
import express from "express";

const app = express();
// Keep the raw body: signatures are computed over exact bytes
app.use(express.raw({ type: "application/json" }));

app.post("/webhook", (req, res) => {
  const signature = req.get("X-Hub-Signature-256") || "";
  const expected =
    "sha256=" +
    crypto.createHmac("sha256", process.env.WEBHOOK_SECRET)
      .update(req.body)
      .digest("hex");

  const valid =
    signature.length === expected.length &&
    crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected));

  if (!valid) return res.status(401).send("Invalid signature");

  const event = JSON.parse(req.body.toString());
  // handle event...
  res.sendStatus(200);
});

PHP / Laravel

public function handle(Request $request)
{
    $payload   = $request->getContent(); // raw body
    $signature = $request->header('X-Hub-Signature-256', '');
    $expected  = 'sha256=' . hash_hmac('sha256', $payload, config('services.webhook.secret'));

    if (! hash_equals($expected, $signature)) {
        abort(401, 'Invalid signature');
    }

    $event = json_decode($payload, true);
    // dispatch a queued job, then respond quickly
    return response()->json(['ok' => true]);
}

In Laravel, exclude the webhook route from CSRF protection (for example, in bootstrap/app.php or the VerifyCsrfToken middleware, depending on your version).

Python (Flask)

import hmac, hashlib, os
from flask import Flask, request, abort

app = Flask(__name__)

@app.post("/webhook")
def webhook():
    body = request.get_data()  # raw bytes
    signature = request.headers.get("X-Hub-Signature-256", "")
    expected = "sha256=" + hmac.new(
        os.environ["WEBHOOK_SECRET"].encode(), body, hashlib.sha256
    ).hexdigest()

    if not hmac.compare_digest(signature, expected):
        abort(401)

    event = request.get_json()
    return "", 200

Reading the Response: Status Codes

Status Meaning for webhooks What to check
200 / 204Received successfullyNothing; this is the goal
201 / 202Accepted (often queued)Fine for most providers
301 / 302RedirectMany senders do not follow redirects; use the final URL
400Bad requestMalformed JSON or missing required fields
401 / 403Unauthorized / forbiddenSignature mismatch, wrong token, or firewall rule
404Not foundWrong path or route not registered
405Method not allowedRoute accepts GET but not POST
415Unsupported media typeMissing or wrong Content-Type: application/json
419Page expired (Laravel)CSRF protection is blocking the route
422Unprocessable entityValidation failed on the payload
429Too many requestsRate limiting on your endpoint
500 / 502 / 503Server errorCheck app logs; the provider will usually retry
TimeoutNo response in timeMove heavy work to a queue and reply immediately

See also: HTTP Status Codes.

Troubleshooting Checklist

  • Signature does not match: verify against the raw body, not re-serialized JSON; make sure the secret has no trailing whitespace; compare the full sha256= prefix.
  • Endpoint returns 404: confirm the exact path, trailing slash, and HTTP method.
  • Endpoint returns 415 or an empty body: send Content-Type: application/json and check body-parser order in your framework.
  • Works in the tester but not from the provider: compare headers, payload size, and IP allowlists; provider payloads are larger and have stricter signature rules.
  • Timeouts: respond with 2xx first, then process the event asynchronously.
  • Duplicate events: providers can retry; make handlers idempotent by storing the event ID.
  • Cannot reach a local server: see Testing Local Endpoints.

Testing Local Endpoints

The tester sends requests through a server-side proxy, so it cannot reach localhost or private network addresses. To test a local endpoint, use one of these options:

  1. Expose your local server with a tunneling tool such as ngrok or Cloudflare Tunnel, then paste the public HTTPS URL.
  2. Generate a cURL command with the cURL Builder and run it from your own machine against http://localhost:PORT/....
  3. Deploy to staging and test against a real HTTPS URL.
curl -X POST http://localhost:8000/webhook \
  -H "Content-Type: application/json" \
  -H "X-Webhook-Event: order.created" \
  -d '{"event":"order.created","data":{"order_id":"ORD-1001"}}'

Webhook Security Best Practices

  1. Always verify signatures and reject unsigned requests.
  2. Use HTTPS for every webhook endpoint.
  3. Compare signatures in constant time (timingSafeEqual, hash_equals, compare_digest).
  4. Check timestamps where the provider supplies them, to limit replay attacks.
  5. Deduplicate by event ID so retries do not cause double processing.
  6. Respond fast, work later: return 2xx, then handle the job in a queue.
  7. Do not trust the payload blindly: validate fields, and for sensitive actions, fetch the resource from the provider's API.
  8. Rotate secrets periodically and keep them out of source control.
  9. Rate-limit and log webhook traffic, without logging secrets.

Use Cases

  • Payments: confirm that payment_intent.succeeded activates an order in your app.
  • CI/CD: trigger a deployment when a GitHub push or release event arrives.
  • ChatOps: post alerts to Slack or Discord from monitoring tools.
  • Automation: feed events into Zapier, Make, or n8n workflows.
  • SaaS billing: test subscription lifecycle handling such as customer.subscription.updated.
  • QA: replay edge cases such as empty fields, huge payloads, or unexpected event types.
  • Education: demonstrate how webhooks work in tutorials or workshops.

Frequently Asked Questions

What is a JSON webhook tester?

It is an online tool that sends a sample JSON payload to your webhook URL so you can check how your endpoint responds, without waiting for the real event to occur.

How is this different from the API Request Builder?

The API Request Builder is a general-purpose HTTP client. This tool is built for webhooks: it has an event type header, HMAC signature generation, and templates for Stripe, GitHub, Slack, Discord, and Zapier.

What is the X-Hub-Signature-256 header?

It is an HMAC-SHA256 signature of the request body, computed with your webhook secret and sent in the sha256=<hex> format used by GitHub. Your server recomputes it and compares the two values to confirm the request is authentic and unmodified.

Can I test Stripe webhook signatures with this tool?

The built-in signature uses the GitHub-style format. Stripe signs a timestamp plus the payload and sends it in Stripe-Signature, so for Stripe-specific verification you should add that header manually or use Stripe's own CLI for exact signing.

Can I test local webhook endpoints?

Not directly. The proxy cannot reach localhost or private IPs. Use a tunnel such as ngrok, or generate a command with the cURL Builder and run it locally.

Is my payload stored or sent to a server?

Requests are forwarded through a proxy to your target URL so the response can be shown in the browser. Avoid putting real production secrets or personal data in test payloads; use dummy values.

Which HTTP method does the tool use?

Webhooks are sent as POST requests with a JSON body.

What status code should my webhook endpoint return?

Return a 2xx code (usually 200 or 204) as soon as you have received and validated the event. Return 4xx or 5xx only when you want the sender to treat the delivery as failed.

Why does my endpoint return 401 or 403?

Usually a signature mismatch, a missing or wrong authorization header, or a firewall or IP allowlist blocking the request.

Is this tool free?

Yes. It is free, with no registration required.

Last updated: 2 Dec 2026