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.
-
Step 1
Paste the response body
The JSON, XML or text you want the endpoint to return. Up to 1MB.
-
Step 2
Choose how it answers
Any status from
200to599, and the content type to send it as. -
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.
- Answers every method, so a
POSTfrom your code works too - CORS is open, call it straight from browser code
- Data types only. Nothing a browser renders, so no
text/html - Expires in
3days, or30with the checkbox
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.
1MBmax,100requests per IP per 5 minutes204,205and304answer without a body, as they must
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.