A browser REST client lets you send HTTP requests and read responses without installing a desktop app, so you can check whether an endpoint is up, whether your authentication works, and what shape the JSON really has. The quickest working set: open a web-based client in a modern browser (Chrome, Edge, Firefox or Safari), pick the method (GET, POST and so on), paste the full URL, add any headers, add a request body if the method needs one, press Send, then read the status code and the response body. That covers nine out of ten everyday checks. The rest of this guide covers the things that actually go wrong: preflights, CORS, cookies, expired tokens, and the browser-only limits you need to know before you blame your own code.
What You'll Need
- A current version of Chrome, Edge, Firefox or Safari. Older browsers can break modern requests and developer tools.
- A REST client that runs in the browser. Options include a client's own hosted web app, or the built-in tools already in your browser: the Network panel and the Console. Both approaches are covered below.
- The API endpoint URL, including the scheme (
https://) and any path or query string. - Any credentials the API needs, typically an API key, a bearer token, or a username and password. Have them ready, not in a document you have to hunt for mid-request.
- The request content type the API expects, usually
application/json, and a sample body or payload from the API's documentation. - Note that exact wording of menus and buttons varies slightly between client versions and between desktop and mobile, so treat any label below as a description rather than a guarantee of the exact string.
Step-by-Step
- Open the client and create a new request. In a hosted browser client, look for a New Request button, a plus icon beside the request list, or an empty URL bar at the top of the workspace. You do not need an account for a single test request in most clients, but saving a collection usually does require signing in.
- Choose the HTTP method from the dropdown to the left of the URL field. A GET request asks for data and carries no body. POST creates something. PUT replaces it. PATCH updates part of it. DELETE removes it. HEAD asks for headers only. If the documentation says POST, do not send GET, because a surprising number of APIs answer GET with an empty result rather than an error.
- Paste the complete URL. Include the scheme and the port if it is not the default. Do not paste a URL with spaces or line breaks from a chat app; spaces break the request silently and you get a confusing network error. If the URL contains query parameters, check that an
&between parameters has not been mangled. - Set the headers the API requires. Add at least the authentication header and, for requests with a body, a Content-Type header. A typical authenticated call uses an Authorization header whose value is the word Bearer followed by a space and your token, or a custom header such as X-API-Key whose value is the key itself. Read the API's docs for which one it wants; sending both is usually harmless, sending neither is almost always a 401.
- Add the request body if the method needs one. Switch to the body section, select the JSON type rather than the raw text type, and paste a valid JSON object. Watch the braces and commas: a trailing comma after the last property is invalid JSON and many APIs reject it with a 400 rather than telling you why. If the client has a format or beautify button, use it and check that nothing turns red.
- Press Send and read the status before the body. A 2xx means the server accepted the request. A 3xx means a redirect happened, and clients often follow it for you, which can hide a wrong URL. A 4xx means the request itself is wrong: 400 for a malformed body, 401 for missing or bad credentials, 403 for valid credentials without permission, 404 for a wrong path, 429 for rate limiting. A 5xx means the server failed, and the fault is usually not in your request.
- Inspect the response in both views. The pretty or formatted view makes nested JSON readable; the raw view shows exactly what came back, including whitespace that matters in some responses. Check the response headers too, especially the content type, any rate-limit headers, and any request ID you can quote when asking for support.
- Save the request into a collection once it works. Give it a name you will recognise later, such as the endpoint path and method. Collections let you re-run the same call after changing one header or one value, which is how you narrow down a problem quickly.
- Use variables instead of pasting values. Most browser clients support environment variables, commonly written as double curly braces around a name. Put the base URL and the token in variables, then reference them in the URL and headers. When the token expires you change one value instead of every request.
- Fall back to the browser's own developer tools if you have no web client. Open DevTools, go to the Network panel, trigger the request from the site's own interface, then right-click the captured request and choose the option to copy it as fetch. Paste that into the Console and edit the URL or body before running it. This also shows you exactly the headers the real site sends, which is the fastest way to find a missing one.
Common Mistakes
- Confusing CORS with a broken API. A browser client is still a web page, so any request to another domain is subject to the cross-origin rules. If the server does not allow your client's origin, the request either fails before it is sent as a preflight or returns a response the page cannot read, even though the server logged a normal 200. A desktop client does not have this restriction, so the same call can work there and fail in the browser. That is a server configuration issue, not a typo in your request.
- Sending a body with GET. Some clients let you type one, and most servers ignore it. If the API expects parameters, put them in the query string or use the method the docs specify.
- Forgetting the query string is part of the URL. A 404 on a path that looks correct often means a duplicated slash, a missing version prefix such as
/v1, or a stray trailing space. - Assuming the token never expires. Short-lived tokens are normal. A call that worked ten minutes ago and now returns 401 usually needs a fresh token, not a rewritten request.
- Reading only the body. A response body saying nothing useful plus a 403 status is the actual answer: you are authenticated but not permitted.
- Pasting secrets into a shared collection. Anything saved in a shared workspace may be visible to others. Use variables and keep real keys out of exported files.
Tips
- Test in the order developers build: a simple GET that needs no auth, then the same GET with auth, then a POST with a minimal body. Each failure then points at one variable.
- Compare a failing request with a working one side by side. The difference in headers is usually the answer, most often a content type or an authentication scheme.
- Turn off automatic redirect following when you are debugging a URL, so you can see the 301 or 302 instead of the final page.
- If a browser client cannot reach an endpoint, try the same request from a terminal with curl to decide whether the problem is the API or the browser's cross-origin rules.
- Keep one request per endpoint per method in your collection and let variables handle environments. It stays readable as it grows.
- Never test against production with delete or update calls. Use a test key or a sandbox environment the API provider offers.
Troubleshooting
If that did not work, work through this order. First re-read the status code: it tells you which layer failed. For a 401, check that the header name is exactly right, that the word Bearer is capitalised as the docs show, and that there is a single space after it. For a 403, check the key's permissions and scopes, and whether the key is for a different environment. For a 404, check the path, the version prefix and whether the URL has a trailing slash the API does not want. For a 400, validate the body: copy it into a JSON validator, or use the client's format button and look for errors.
If the request fails with no status at all, suspect the browser layer. Check the Console for a message about blocked requests or a preflight failure. Confirm the URL uses https:// if the browser page itself is served over https; mixing the two is blocked. Try a different client or a terminal to confirm whether the API is reachable at all. Clear the site's cookies and sign in again if the client itself behaves oddly, and reload with a hard refresh. If the endpoint needs a session cookie from another site, a browser client may not send it because of third-party cookie restrictions, which no amount of editing your headers will fix. Finally, check the API provider's status page before assuming anything is wrong on your side: a 500 from every endpoint is usually their problem.
Frequently Asked Questions
Is a browser REST client safe for real API keys?
Only for keys you can rotate and that have limited permissions. Prefer test or sandbox keys, and never store production secrets in a shared collection.
Why does the same request work in a terminal but fail in the browser?
Almost always cross-origin rules. The browser blocks or hides the response unless the server sends the right CORS headers. A terminal has no such restriction.
Can I send files with a browser client?
Hosted clients usually support form-data bodies with a file field, but very large files may hit limits and the server must accept multipart uploads. Check the API's upload instructions first.
Do I need an account to use one?
Not for a single quick request in most hosted clients, but saving collections, sharing, and syncing usually require signing in.
What is the difference between a browser client and DevTools?
DevTools only replays or mimics requests from the page you have open and works best on the site's own traffic. A dedicated browser client gives you a saved request, variables and history, and can send anything you type.
Does the client store my requests in the cloud?
That depends entirely on the product and whether you sign in. Check the client's own privacy documentation before sending sensitive data.