UseToolSuite UseToolSuite

API Request Builder

Test API endpoints directly from your browser with our Postman-lite client.

GET, POST, PUT, PATCH, DELETE Custom headers and JSON body Requests go straight from your browser Nothing sent to our servers

Recent successful requests

Headers
Response 000 0 ms
0 B
Hit send to get a response...

Hyper-Functional API Client (Postman Alternative)

Test REST API endpoints directly from your browser. This tool features a powerful local environment variable system (e.g., {{base_url}}), real-time JSON body linting, a polyglot code snippet generator, and persistent local history. No server, no account, 100% private.

This is a browser client, and that defines its rules

Because every request originates from the Fetch API inside your tab, it lives under the same restrictions as the JavaScript on any website you visit. That’s a feature for testing your own front-end’s perspective — “will my SPA actually be allowed to call this endpoint?” — and a hard limit when probing third-party APIs that never intended to be hit from a browser.

You canYou can’t
Call your own CORS-enabled APIsBypass the same-origin policy
Set Authorization, custom headersSet forbidden headers (Host, Origin, Referer, Cookie)
Inspect status, headers, bodyRead a response the server didn’t CORS-permit
Test JSON, form, and text bodiesSkip the preflight on a non-simple request

The CORS preflight, demystified

When a request isn’t “simple” (see the FAQ), the browser quietly sends an OPTIONS request first, advertising the method and headers it intends to use via Access-Control-Request-Method and Access-Control-Request-Headers. The server must answer with matching Access-Control-Allow-Methods / Access-Control-Allow-Headers and an Access-Control-Allow-Origin that includes your origin. Only then does the real request go out. If the preflight is rejected — or the server doesn’t handle OPTIONS at all — you get TypeError: Failed to fetch and never see a status code, because the actual request was never sent. That confusing “no response” failure is almost always a failed preflight.

Auth schemes, at a glance

The builder lets you set the Authorization header by hand; knowing the shape of each scheme saves a round trip:

  • Bearer tokenAuthorization: Bearer eyJ…. The mind-the-gap classic: the literal word Bearer, one space, then the token. A missing space is the most common 401 on a token you know is valid.
  • Basic authAuthorization: Basic base64(user:pass). Base64, not encryption — only meaningful over HTTPS.
  • API key — often a custom header like X-API-Key: … rather than Authorization; check the provider’s docs for the exact header name.

When to stop fighting the browser

If an endpoint genuinely won’t return CORS headers for a browser origin, that’s the signal to move the call server-side. A tiny backend proxy — or a serverless function — makes the request from a context with no same-origin policy, attaches the secret server-side (keeping it out of client code entirely), and returns the result to your front-end with your own permissive CORS headers. This pattern is not a workaround so much as the correct architecture: third-party secrets don’t belong in browser-reachable JavaScript in the first place.

API Request Builder runs in the browser to help you inspect, build, and debug requests. It's one of the free Network & API Tools on UseToolSuite. Below you'll find a step-by-step guide, answers to common questions, and related tools.

Last updated

How to Use This Tool

  1. 1

    Set the method and URL

    Pick the HTTP method and enter the endpoint you want to call.

  2. 2

    Add headers and a body

    Set any headers you need — an Authorization token, a Content-Type — and write the JSON body for POST or PUT requests.

  3. 3

    Send and read the response

    Fire the request and inspect the status code, response headers, and body without leaving the page.

How helpful was this tool?

Click to rate

Embed this tool on your site

Paste this snippet into any HTML page or blog post to embed a live, fully working copy of API Request Builder. Free for any use.

Key Concepts

Essential terms and definitions related to API Request Builder.

CORS

A browser security rule that lets a server say which other websites are allowed to call it. If the server does not opt your origin in, the browser blocks the response — even though the request may have reached the server.

Preflight request

For certain requests the browser first sends an automatic OPTIONS request to ask the server whether the real request is allowed. A failed preflight is a common cause of "Failed to fetch".

Bearer token

A common way to authenticate an API call by sending "Authorization: Bearer <token>". The token proves who you are; keep it secret.

Frequently Asked Questions

Why do I get a CORS error when tools like Postman work fine?

Postman is a desktop app, so it is not bound by browser security. This builder runs in your browser using fetch, so the same CORS rules that protect any web page apply: the target API must send an Access-Control-Allow-Origin header that permits web requests. Many public APIs do; many private ones do not.

Are my API keys and tokens sent to your servers?

No. The request goes directly from your browser to the target API — we never see it. Your Authorization headers and request body stay on your device, which is the whole point of a client-side client.

Why can I not set headers like Host or Origin?

Browsers reserve a set of "forbidden" headers — Host, Origin, Referer, Content-Length and a few others — and set them automatically. JavaScript is not allowed to override them, so those fields are managed for you.

What makes a request 'simple' so it skips the CORS preflight?

A simple request uses GET, HEAD, or POST; carries only CORS-safelisted headers (Accept, Accept-Language, Content-Language, and Content-Type); and the Content-Type is limited to application/x-www-form-urlencoded, multipart/form-data, or text/plain. Meet all of those and the browser sends the request directly. Step outside any of them — add an Authorization header, send application/json, or use PUT/DELETE — and the browser first fires an OPTIONS preflight to ask the server's permission. Most JSON APIs therefore always trigger a preflight.

The API works in Postman but not here — why?

Postman is a native HTTP client, not a browser tab, so it is not bound by the same-origin policy and never performs CORS preflights. This browser-based builder uses the Fetch API, which the browser sandboxes with full CORS enforcement. If a call succeeds in Postman and fails here with 'Failed to fetch', the API simply doesn't return permissive CORS headers for browser origins — that's a server configuration fact, not a tool limitation. Call it from your backend or a proxy instead.

Troubleshooting & Technical Tips

Common errors developers encounter and how to resolve them.

TypeError: Failed to fetch

Usually a CORS block: the API did not return an Access-Control-Allow-Origin header the browser accepts. If it is an API you control, enable CORS on the server; otherwise you will need to call it from a backend rather than a browser.

401 Unauthorized with a token you believe is valid

Check the header format. Bearer auth needs the literal word "Bearer" and a space before the token. Also confirm you copied the whole token with no leading/trailing spaces or line breaks.

Related Guides

In-depth articles covering the concepts behind API Request Builder.

Related Tools