Paste JSON.
Get a test endpoint.

Choose what it answers with, press the button, and you have a live URL that returns exactly that. For building against an API that does not exist yet, or reproducing the one response that breaks your code.

  1. Step 1

    Paste the response body

    The JSON, XML or text you want the endpoint to return. Up to 1MB.

  2. Step 2

    Choose how it answers

    Any status from 200 to 599, and the content type to send it as.

  3. Step 3

    Point your code at it

    You get a URL like addshit.com/d/abc123xyz9. It answers every method, from a browser or from curl.

Or create one with curl

curl -X POST -d '{"test":"data"}' https://addshit.com/api/v1/dump
{"id":"abc123xyz9", "url":"https://addshit.com/d/abc123xyz9",
 "content_type":"application/json", "status_code":200}

curl https://addshit.com/d/abc123xyz9
{"test":"data"}

Two headers choose how the endpoint answers. Both are optional, and the content type is detected from the body when you leave it out.

curl -X POST \
  -H "X-Response-Status: 429" \
  -H "X-Response-Type: application/problem+json" \
  -d '{"title":"Too Many Requests","retry_after":30}' \
  https://addshit.com/api/v1/dump

curl -i https://addshit.com/d/abc123xyz9
HTTP/2 429
content-type: application/problem+json; charset=utf-8

Add -H 'X-Keep-Alive: 1' to keep one for 30 days instead of three. The response tells you which you got.

Also here: a webhook tester

The other way round to this page. This one answers requests you describe; that one records requests other people send, every header and the exact body, and forwards them to your real endpoint while you watch.

Open the webhook tester