postapi-dev A POST endpoint you call with GET Shared view Read only
Grid view 2 ▾ Hide fields Filter Group Sort The whole reference fits in one table, so that is what this page is.
AaParameter≡MeaningExampleRequiredAaNotes
1AddressThe http or https address the request goes to. Any public host.the full target URLyes
2BodyWhat is sent as the request body, written into the link as text.{"hello": "world"}no
3MethodPOST unless told otherwise. PUT, PATCH and DELETE also work.POSTno
4HeadersExtra request headers to pass along, such as a content type.Content-Type: application/jsonno
5Answer formatThe other side's answer comes back as it was sent: status, body, type.200 / textno
6
6 records

Usage

expanded record×
AaSummary
Free, no account and no key. Sends POST and other methods to any public http or https address, with your headers, and returns the other side's answer.
≡Long text
postapi-dev: A POST endpoint you call with GET

Put the address and the body in a link and fetch it. This POSTs
{"name":"test"} to https://example.com/api and gives you whatever
example.com answered, status code and headers included:

    https://www.postapi.dev/api/relay?url=https://example.com/api&data=%7B%22name%22%3A%22test%22%7D

With curl, which does the encoding for you:

    curl -G https://www.postapi.dev/api/relay --data-urlencode 'url=https://example.com/api' --data-urlencode 'data={"name":"test"}'

Something other than a POST, or with headers of your own:

    https://www.postapi.dev/api/relay?url=https://example.com/api/7&method=DELETE
    https://www.postapi.dev/api/relay?url=https://example.com/api/7&method=PUT&data=name%3Dnew&headers=%7B%22Authorization%22%3A%22Bearer%20abc%22%7D

headers is a JSON object, here {"Authorization":"Bearer abc"}. A body
that is JSON goes out as application/json, a=1&b=2 as a form, anything
else as text; content_type=... says otherwise. Add response=json to
get the answer wrapped in an object with "status", "headers" and
"body". http and https only. Redirects are followed. No key, no
account.

Try a request

form×




postapi-dev · postapi.dev · Back to base