Request Bins allow you capture and inspect HTTP requests in realtime for debugging & development. They are especially useful when developing code for webhooks on a local webserver.
Setup your first Request Bin
Lets say you are implementing some code that will recieve a delivery status webhook from a transactional email platform (Such as Mailgun, Mandrill, SendGrid).
Replaying the request to your local machine
Request Bins will replay the request (including headers & content body) via Ajax. Using Ajax means you can correctly route the request simply by modifying your hosts file (like you would when setting up a virtual host on a local webserver such as XAMPP or Apache). Please note some headers are unable to be sent via Ajax and will be dropped/modfied instead.
You'll need to authenticate using your API Key.
There are two ways to authenticate:
$ curl -H "X-Api-Id: <API_KEY_ID>" -H "X-Api-Secret: <API_SECRET>" 'https://snja.io'
$ curl 'https://snja.io/foo?_id=<API_KEY_ID>&_secret=<API_SECRET>'
API Keys can be created and managed in the API Keys section.
API Keys are rate limited to ensure fair delivery of services. You can view the current Rate Limit and Remaining Requests in the returned Response Headers from the API. Below is a description of the Response Headers.
|X-RateLimit-Limit||The maximum number of requests per time window.|
|X-RateLimit-Remaining||The number of requests remaining before reset.|
|X-RateLimit-Reset||The time at which the current rate limit window resets in UTC Epoch seconds.|
The following HTTP response codes are used.
|200||OK||The request has succeeded.|
|400||Bad Request||The request could not be understood by the server due to malformed syntax.|
|401||Unauthorised||This indicates that you have not passed a valid API key, the key has expired, or the Authorization header is not formatted correctly.|
|404||Not Found||The server has not found anything matching the Request-URI.|
|405||Method Not Allowed||This indicates that the request method is known by the server but has been disabled and cannot be used.|
|429||Too Many Requests||We have recieved too many requests from your API Key in a given amount of time. Wait a while and try again.|
Easily mock-up your app screenshots onto different devices for marketing
Login on a TV or Pi and ring an audible bell every time the team makes a sale
Your Net Promoter Score measures brand loyalty and forecasts business growth
Get notified instantly when your website is down and not responding to requests
Get notified when your cron jobs fail or benchmark their performance
Keep your customers informed during scheduled or unplanned outages
Lookup Country, Language & Currency Information from an IP address
Track DNS changes on your domains & get notified of expiring certificates
Monitor your competitors' websites and get notified when they change
Cross-platform Hybrid App build service for Cordova, React Native & Flutter
Generate swimlane charts of your customer's journey through your product
Capture & inspect HTTP requests. Replay the request to your local machine