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

Accepts only POST and echoes the body

POSThttps://api.testingapis.com/api/methods/post

Up to 1MB of body is echoed; larger bodies are counted and flagged with bodyTruncated.

Request body

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

Example body
{"a": 1}

Responses

200
Method, query, content type and body.
405
Any other verb.

Example

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