httpbin

Returns the POSTed data

post

Query Parameters

freeformobject

Enter free-form query parameters in the JSON format { "param1": "value1", "param2": "value2", ... }.

Note that the parameters will be actually sent as ?param1=value1&param2=value2&...

* Additional properties are allowed.

Body

Data provided in the request body will be returned in the response.

Response

200 application/json

OK

CommonResponse

Response returned by /get

argsobjectrequired

Query string parameters specified in the request URL.

headersobjectrequired

Headers (standard or custom) used in the request. Some typical headers are:

  • Accept
  • Accept-Encoding
  • Content-Length
  • Content-Type
  • Host
  • Origin
  • Referred
  • User-Agent
originstringrequired

The origin IP from which the request was made.

Example:10.100.10.10, 10.100.10.44, 52.91.14.13

urlstring(uri)required

The endpoint URL to which the request was made.

Example:https://httpbin.org/post

post/post

Body

{ "message": "Hello, world!" }
 
200 application/json

Status codes

Return the specified HTTP status code, or a random status code if more than one are given

/status/{statusCode}

get

Path Parameters

statusCodeOne Of
arrayrequired

HTTP status code. May include optional weight, e.g. 200:0.9

>= 1 items

Example:["200:5","500:0.3",418]

Variant 1string

Response

default

A response with the requested status code.

get/status/{statusCode}
 
default

/status/{statusCode}

post

Path Parameters

statusCodeOne Of
arrayrequired

HTTP status code. May include optional weight, e.g. 200:0.9

>= 1 items

Example:["200:5","500:0.3",418]

Variant 1string

Response

default

A response with the requested status code.

post/status/{statusCode}
 
default

/status/{statusCode}

patch

Path Parameters

statusCodeOne Of
arrayrequired

HTTP status code. May include optional weight, e.g. 200:0.9

>= 1 items

Example:["200:5","500:0.3",418]

Variant 1string

Response

default

A response with the requested status code.

patch/status/{statusCode}
 
default