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

Accepts any verb and describes the request

GETPOSTPUTPATCHDELETEHEADOPTIONShttps://api.testingapis.com/api/methods/any

The body is read for POST, PUT, PATCH and DELETE, and ignored for GET, HEAD and OPTIONS.

Request body

Optional. application/json. Optional body; described in the response.

Example body
{"a": 1}

Responses

200
Method, query, content type and body.

Example

Request
curl -X POST "https://api.testingapis.com/api/methods/any" \
  -H "Content-Type: application/json" \
  -d '{"a": 1}'
Response200 OK
{
  "method": "POST",
  "message": "POST request received",
  "path": "/api/methods/any",
  "query": {},
  "contentType": "application/json",
  "bodyLength": 8,
  "bodyTruncated": false,
  "body": "{\"a\": 1}",
  "timestamp": "2026-09-30T18:26:44Z"
}