DevGrill

REST API Client

Send GET, POST, PUT, PATCH and DELETE requests and inspect the response.

Sent from your browser

Requests go straight from your browser to the server you enter. DevGrill never sees them, but that server does.

History (0)

Requests you send show up here.

Kept only in this browser: method and URL, with secret-looking values blanked. Headers and bodies are never saved.

Send a request to see the response here.

Testing an API from your browser

Enter a URL, pick a method, add headers, authentication and a JSON body, and press Send. You get the status, response headers, the body (JSON is formatted and foldable) and how long it took. From there, send the JSON on to the other tools to query it, turn it into types or compare it, or turn the request into curl or code in 10 languages.

Unlike DevGrill's other tools, this one sends data: when you press Send, your browser sends the request straight to the server you entered, just like a request made by any web app. It doesn't pass through DevGrill, so we never see your URL, headers, tokens or body, but the server you call does. Recent requests are remembered in your browser by method and URL only, with secret-looking values blanked; headers and bodies are never saved.

How to use the REST API Client

  1. Enter the URL and method. Or paste a curl command into the URL box (for example from DevTools › Copy as cURL) and it's filled in for you.

  2. Add what the API needs. Query parameters, headers, auth (Bearer token, Basic, or an API key) and a JSON, text or form body.

  3. Send it. The response shows its status, time and size, with Body, Headers and Timing tabs.

  4. Take it further. Copy as curl, convert to code, or send a JSON response to JSONPath, JSON to Types or Compare.

Tips

  • Many APIs only accept requests from their own websites (CORS). If one refuses, you'll see why, with a curl command to run in a terminal instead.
  • Testing your own local server? http://localhost works; other plain http:// addresses are blocked by browsers on an https page.
  • Browsers set some headers themselves, like Cookie, Origin and User-Agent, and ignore the ones you type for those.

Frequently asked questions

Does DevGrill see my requests?

No. There's no proxy: your browser sends the request directly to the API, and the response comes straight back. The API you call does see everything you send, as with any client.

Why does a request work in Postman or curl but fail here?

Browsers enforce CORS: a web page can only read responses from APIs that allow it. Postman and curl aren't web pages, so the rule doesn't apply to them. The error message tells you when this is the reason.

What's saved?

Only a list of recent requests (method and URL) in this browser's storage, with values of parameters like api_key or token blanked. Clear it any time with Clear. Headers, tokens and bodies are never saved, and there are no share links for this tool.

Can it upload files or use WebSockets?

Not yet. It sends JSON, text and form bodies. For file uploads, use the curl Converter to get code you can run.

Related tools