API simulator
Simulate API requests (GET, POST, PUT, PATCH, DELETE) with configurable options.
Settings
Response
The result will appear here.
About this tool
This lightweight HTTP client sends real requests to the API of your choice, right from the page, without installing Postman or writing a curl command. Use it to check that an endpoint responds, try out an API key, confirm an error status, or look at the shape of a response before wiring it into your code.
It supports the GET, POST, PUT, PATCH and DELETE methods. Headers are entered as a JSON object and the body as JSON; when you send a body without a Content-Type header, application/json is added for you. The response panel shows the status code, its status text and the duration in milliseconds, and JSON responses are pretty-printed.
How to use it
- Pick a method in “Select HTTP Method” and type the address in “Enter API URL”.
- Optionally add headers in “Enter Headers (JSON format)”, for example {"Authorization": "Bearer …"}.
- For POST, PUT, PATCH or DELETE, enter your data in “Enter Body (JSON format)”.
- Click “Send Request” and review the status and response.
- Click “Copy Response” to reuse the result.
Frequently asked questions
Why does my request fail when the API works with curl?
The request is sent by your browser, which enforces CORS: the API has to allow calls from web pages. An http:// URL called from an https:// page is also blocked. curl has neither restriction, which explains the difference.
Do my requests and tokens go through a MagicWebBox server?
No. Your browser sends the request straight to the URL you entered, with no relay through our servers. Headers such as an authorization token are only sent to the target API. The fields are not kept once you reload the page.
What body formats are supported?
The request body must be valid JSON; other formats such as XML or URL-encoded form data are rejected. With GET, the body is ignored. Responses can be of any type: JSON is pretty-printed and everything else is shown as is.
Can I create fake responses or mock an API?
No, the tool does not generate simulated responses: it calls a real API and shows what comes back. To test a front end without a backend, point it at a public demo API that accepts requests from browsers.