What is a webhook?
A webhook is an HTTP request a service sends to a URL you register when something happens — a payment settles, a message is delivered, a build finishes — so your system reacts to events instead of polling. Testing one means capturing what is actually sent (method, headers, body), checking retries and ordering, and verifying the signature that proves the call came from the sender.
Security note: A webhook endpoint is a public URL anyone can post to. Verify the sender's signature (usually an HMAC over the raw body) with a constant-time comparison, reject stale timestamps, and treat the payload as untrusted input.
Read the guide: What is API Testing? How to Test a REST API
How to use Request Body Inspector
- Create a capture URL.
- Send the request from your application or with cURL.
- Select it — the Body tab shows the parsed and raw body side by side.
Request Body Inspector features
- Captures POST/PUT/PATCH bodies exactly as sent: raw bytes, size and Content-Type
- JSON pretty-printed and as a tree; form-urlencoded decoded to fields; XML shown as text
- Body tab opens by default; truncation is flagged
- Important fields and timestamps extracted from JSON bodies
- Copy payload or cURL reproduction
Request Body Inspector example
Form submission
Input:
POST … Content-Type: application/x-www-form-urlencoded
name=Layla&plan=pro&agree=onOutput:
Form fields
{
"name": "Layla",
"plan": "pro",
"agree": "on"
}
32 B · application/x-www-form-urlencodedFrequently asked questions about Request Body Inspector
Which body types are decoded?
JSON is pretty-printed and shown as a tree, application/x-www-form-urlencoded is decoded into fields, XML is shown as text; everything is also available raw.
How large can the body be?
The capture keeps the first 256 KB of each body and marks anything longer as truncated. Requests with a body over 4 MB are refused with 413 Content Too Large and are not captured.
Can I verify what my app really sends?
Yes — that is the point: compare the raw bytes, Content-Type and size with what your code intended to send.
References
- RFC 9421: HTTP Message SignaturesA standard way to sign HTTP messages so a receiver can verify their origin and integrity — the basis of modern webhook signatures.
- RFC 2104: HMAC: Keyed-Hashing for Message AuthenticationThe HMAC construction: how a secret key and a hash function produce a message authentication code.
- OWASP Cheat Sheet Series: REST SecuritySecurity rules for REST APIs: HTTPS, authentication on every request, input validation, safe error responses, rate limiting.