⚠️ JavaScript is required to use Black Claaw Tools. Please enable it in your browser settings.
Skip to main content

API Request Builder

Build, test, debug, and export HTTP API requests directly in your browser. Complete with code generation and Postman collection support.

Advertisement

Query Parameters

HTTP Headers

Authentication

Auth configurations are injected automatically when you send the request.

This request does not have a body.

Environment Variables

Use variables like {{base_url}} in your URLs, headers, or body.

Status -
Time -
Size -

Send a request to see the response

Recent Requests

Export Collection

Export your request history as a Postman v2.1 compatible JSON collection for use in desktop clients.

Import Collection

Load a Postman collection JSON file to populate your request history.

Builder Utilities

Advertisement

Testing an Endpoint Without Opening a Heavy Desktop Client

Sometimes you only want to hit one REST endpoint, read the JSON payload, and grab a cURL command for a bug ticket. Opening a full desktop API suite often means waiting through updates, signing back into a cloud workspace, or worrying about whether your staging tokens just synced to a remote account. Running an HTTP request directly from a browser tab cuts out that overhead. Everything you enter in this builder stays inside your browser session and local storage.

You can send GET, POST, PUT, PATCH, DELETE, HEAD, and OPTIONS requests, inspect status codes and timing in milliseconds, view formatted JSON alongside raw response headers, and convert any request into working code for eight different languages and runtimes. Before sending your first call, though, there is one architectural catch every developer should understand.

How Browser Requests Differ From Terminal cURL

Because this builder executes calls through your browser's native fetch() engine rather than a proxy server, your browser enforces web security policies on every request. That creates two practical differences compared to running curl in a terminal.

First, Cross-Origin Resource Sharing (CORS) applies to every domain outside blackclaaw.com. Simple GET requests without custom headers may go straight through, while sending an Authorization header, a Content-Type: application/json header, or methods like PUT and DELETE prompts the browser to send an automatic preflight OPTIONS request first. If the target server omits Access-Control-Allow-Origin and Access-Control-Allow-Headers from its response, the browser blocks JavaScript from reading the reply and reports a network error, even if the server actually processed the call.

Second, browsers forbid JavaScript from overriding certain low level transport headers such as Host, Origin, Referer, Cookie, and sometimes User-Agent depending on the engine. If an endpoint rejects requests missing a custom server cookie or spoofed host header, export the request as a cURL snippet from the code generator tab and run it from your terminal instead. That gives you both the speed of building visually and the unrestricted control of a command line client.

Variables, Authentication, and Payload Behavior

Rebuilding URLs and pasting long tokens across staging and production gets tedious fast. The Environment Variables panel lets you store named values locally under {{variable_name}} syntax. Once saved, you can drop placeholders like {{base_url}}/v1/orders into the URL bar, query parameter rows, headers, authentication inputs, or the request body. Placeholder replacement happens right before dispatch and inside the live code snippet preview.

Three authentication modes are built in so you rarely have to hand craft authorization headers:

  • Bearer Token: Prepends Bearer to your token and attaches it as an Authorization header. Handy when testing OAuth2 access tokens or short lived JSON Web Tokens.
  • Basic Auth: Takes your username and password, encodes the pair in UTF-8 Base64 automatically in the browser, and sends Authorization: Basic ... without sending your credentials anywhere else first.
  • API Key: Lets you place a custom key name and value either inside request headers (such as X-API-Key) or appended directly to the URL query string.

If you paste a URL that already includes query parameters like ?page=2&limit=25 and leave the Params tab empty, blurring the URL field parses those pairs into editable parameter rows automatically. For request bodies on POST, PUT, PATCH, or DELETE calls, selecting JSON enables built in Format and Minify buttons. And if you forget to add a Content-Type header manually, the request builder automatically supplies application/json, application/x-www-form-urlencoded, or application/xml to match your chosen body type unless you have already defined a custom Content-Type header.

From Quick Debug Call to Reusable Code or Postman Collection

Once an endpoint responds the way you expect, switching to the Code tab turns the active request into a copyable snippet without retyping quotes or escaping characters. Supported outputs cover terminal cURL, browser Fetch, Node Axios, Python requests, PHP cURL, C# HttpClient, Go net/http, and Java OkHttpClient.

A subtle detail helps when copying JSON calls: even if a server blocks the browser response via CORS, the generated cURL or backend code snippet still stays accurate and ready to paste into your terminal, CI pipeline, or backend service. You can also inspect the raw response size in bytes, download the full response body as a text file, or switch to the Headers subtab to verify cache directives, rate limit headers like X-RateLimit-Remaining, and content encoding.

Every request you send is saved to your local History list (capped at the 20 most recent calls). From the Export tab, you can download that history as a Postman Collection v2.1 JSON file or import an existing Postman collection file to repopulate your history without creating an account.

Diagnosing Failing API Calls

When an endpoint returns an unexpected error or refuses to respond, checking symptoms in order saves guesswork:

Symptom Likely Cause Next Check
NETWORK ERROR Missing CORS headers on the server, unreachable host, or mixed HTTP/HTTPS blocking Open browser DevTools Network tab for CORS messages, or copy the cURL snippet and test in a terminal
401 Unauthorized Expired Bearer token, missing prefix, or wrong environment variable value Inspect your token payload in a JWT Decoder and confirm the exp timestamp
415 or 400 Bad Request Malformed JSON syntax or server expecting a specific Content-Type Click Format JSON to validate syntax and check the Headers tab for Accept and Content-Type
Unexpected 404 or 301 Trailing slash mismatch (/users vs /users/) or HTTP redirect stripping auth headers Check the exact redirect path with the Redirect Checker before sending credentials

Paying attention to redirects matters more than many developers realize. Because browsers and HTTP clients sometimes drop Authorization headers across cross host redirects, confirming the final canonical URL prevents silent authentication failures.

CORS and Request Header FAQs

Why do some requests fail with a CORS error in the browser?

CORS (Cross-Origin Resource Sharing) is a security policy enforced by web browsers. If the target server does not return Access-Control-Allow-Origin: * (or your current origin), your browser blocks JavaScript in the tab from reading the response.

Are my authorization tokens and API keys stored on your server?

No. The API Request Builder runs completely within your browser memory and local storage. No backend server receives or logs your tokens, passwords, or request payloads.

Can I export my request history to Postman?

Yes. Open the Export tab to download your request history as a JSON file compatible with Postman Collection format v2.1.

What authentication methods does the tool support?

The builder supports Bearer Tokens, API Keys (placed in headers or query parameters), and Basic Authentication with automatic Base64 encoding.

Can I test local development endpoints like localhost:3000?

Yes, provided your local development server sends CORS headers permitting browser requests from external origins.

Related Developer Tools