PostBin
a bin for HTTP POSTs, with an API
A small open-source postbin. Create a bin, send to it, read it back as JSON.
Note No account and no key. Anything you send is readable by anyone who has the bin's id.
Quick start
PostBin: catch HTTP requests and look at them
Make a catcher (GET or POST, no account, no key):
curl https://www.postbin.net/api/bin/new
The answer is JSON with "endpoint" and "viewer".
Whatever is sent to the first URL is kept, with any method, any path below it and any body:
curl -d 'hello' https://www.postbin.net/bin/<id>
curl -X PUT -H 'X-Test: 1' 'https://www.postbin.net/bin/<id>/some/path?a=b'
See what arrived, newest first:
https://www.postbin.net/inspect/<id>
curl https://www.postbin.net/inspect/<id>?format=json
curl https://www.postbin.net/inspect/<id>?format=txt
Try it
Endpoints
| Method | Path | Description |
|---|---|---|
ANY | /api/bin/new | Creates a bin and tells you where to send and where to look. |
ANY | /bin/:id/* | Stores the request. Method, headers, query and body are kept. |
GET | /inspect/:id | Lists the last 100 requests, newest first. Add .json or .txt. |
Reading requests
The page view refreshes itself every 20 seconds. ?format=json returns the same list for scripts.
Self-hosting
Coming with the 1.x docs. See the changelog.
FAQ
How long are requests kept?
There is no expiry yet.
Is there a size limit?
Bodies over 256 KB are shown cut.
Changelog
- latest — JSON and text views.
- Older entries were lost in the move to the new docs theme.