New in 2.4: Test runs you can trust See what's new →

Request bodies

Request-body parsing per content type. Typed endpoints only accept their own Content-Type (415 otherwise) and report what they parsed; /any sniffs the payload; /large measures uploads up to 10MB.

Example request

Detects a body's real type from its content and compares it with the declared Content-Type. Full reference and a Send button.

cURL
curl -X POST "https://api.testingapis.com/api/bodies/any" \
  -H "Content-Type: application/json" \
  -d '{"hello": "world"}'
Run in Studio
Response · 200 OK
{
  "method": "POST",
  "declaredContentType": "application/json",
  "detectedType": "application/json",
  "matchesDeclared": true,
  "length": 18,
  "sha256": "5f8f04f6a3a892aaabbddb6cf273894493773960d4a325b105fee46eef4304f1"
}