# API Client

Enter a method and URL and press Send: your browser sends the request straight to the API, and you see the status, timing, headers and body. This site’s server relays nothing and never receives what you enter or your credentials.

- URL: https://tools.itlibra.com/en/api-client
- On-device・Network lookup
- Last updated: 2026-11-28

## How to use

1. Enter the method (GET, POST …) and the URL. Add query parameters and headers in the Query and Headers rows.
2. If the API needs authentication, enter a Bearer token or Basic credentials under Auth. Choose a JSON, form, text or file body under Body.
3. Press Send (Ctrl/⌘+Enter also works). The status, time and size show on the right, with formatted JSON or raw text. You can list the headers and save the body.
4. If you have a curl command, paste it under “Import from a curl command” and the fields are filled in. Under “Copy it” the current request becomes curl or fetch code.
5. If you reuse the same requests, turn on the history option (secrets are not saved).

## Use cases

- Check quickly that an API in development returns the status code and JSON you expect
- Try a curl example from the documentation as it is, inside the browser
- Compare how the response changes with and without an Authorization header
- Narrow down why a call from the browser is blocked (CORS) using what the browser reports
- Turn a request you tested into curl or fetch code to hand over (credentials hidden)

## What it does

### Sends straight from your browser

The request goes from your browser directly to the other server. This site’s server neither relays it nor receives the URL, headers, body or credentials you enter. Opening the page sends nothing; only pressing Send does.

### Credentials are not kept

A Bearer token and a Basic password are not saved and never go into the history. They go only into the Authorization header of the request you send. In the code you copy, values that look like credentials are replaced with REDACTED (you can switch that off).

### Explains a CORS failure

The browser does not show a page why CORS stopped a request. When one fails, the tool lists the usual causes in order and shows whether the request triggers a preflight (OPTIONS) first. Sending to http://, or from this https page to http://, is warned about before you send.

### Responses are shown as text only

The response body is only displayed as text. It is never interpreted as HTML and no script in it runs. JSON can be formatted, and binary is not shown but can be saved. Status, total time, time until the headers arrived and size are shown.

### Import and export curl

A curl command is read into the method, URL, query, headers, body and auth. The current request can be exported as curl or JavaScript (fetch) code. The import uses the same parser as the curl code generator.

### JSON, form and file bodies

JSON is checked before it is sent. Forms support x-www-form-urlencoded and multipart (with one file), and text or a file can be the body as well. What you send can be up to 20 MB in total.


## Capability matrix

| Feature | Support | Notes |
| --- | --- | --- |
| Send GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS | Supported | — |
| Query, headers, and JSON, form, multipart, text and file bodies | Supported | — |
| Bearer and Basic authentication | Supported | Not saved. Fetching a token with OAuth is not included |
| Response status, timing, headers, formatted JSON, raw text and saving the body | Supported | — |
| Import curl, and export as curl or fetch code | Supported | A body given as “@file”, or a file field, must be chosen again |
| Saving a history | Partial | Off by default. When on, up to 30 entries without the body and credentials are saved in this browser |
| Sending to an API that does not allow CORS | Not supported | The browser does not allow it. This site’s server does not relay |
| Sending and receiving cookies, showing Set-Cookie | Not supported | Requests go without cookies. The browser hides Set-Cookie |
| Showing headers CORS does not expose, or changing headers the browser sets | Not supported | Origin, Host, Cookie and others cannot be set |
| DNS and TLS timing breakdown, HTTP/2 details | Not supported | Only the total time and the time until the headers arrived |
| Long-lived connections such as WebSocket and SSE | Not supported | Use the dedicated tools |

## Limits & notes

- A URL can be up to 2,000 characters. It cannot have a # fragment, and a URL with a user name or password is refused.
- Up to 30 headers. Headers the browser sets itself (Cookie, Host, Origin, Sec-\* …) cannot be set.
- What you send can be up to 20 MB in total. The first 10 MB of a response is read and the rest is not. The screen shows the first 500,000 characters; saving gives everything that was read.
- A request with no response after 60 seconds is stopped.
- Redirects are followed automatically by the browser. The responses in between are not visible.
- Formatted JSON reads large numbers as JavaScript numbers, so integers with many digits may be rounded.
- The history, when on, stays only in this browser. It keeps up to 30 entries of method, URL (values of secret-looking query parameters emptied), headers that do not look like credentials, and status code.

## Privacy & safety

The only server contacted is the one at the URL you enter. The request goes straight from your browser to it; this site’s server neither relays nor stores it. Credentials are not saved and never go into the history or the analytics. The history is kept in this browser only when you turn it on, without the body and credentials.

## FAQ

### Why does a CORS error stop my request?

The browser hands a response to the page only when the API allows this page’s Origin with Access-Control-Allow-Origin. An API that does not allow it fails from a browser even if the server is up and curl works. Allow it on the server, or use this on an API that does. The reason is shown in the browser’s developer console.

### Can I test any API, like Postman?

No. This runs inside the browser, so it only works with APIs that allow CORS. An API you are building can be tried once you add CORS settings. For one that does not allow it, use curl or another command-line tool.

### Are tokens and passwords saved?

No. They disappear when you close the page. Even with the history on, credentials, headers that look like Authorization or API keys, query values that look secret, and the body are left out. Secrets with unusual names cannot be recognised, so never put a real secret in the URL even when using the history.

### Is it safe to send to an http:// API?

To localhost or another server on your own machine, yes. An http:// server across the network is not encrypted, so a real key or password could be read on the way, and a warning is shown. The browser blocks a request from this https page to http:// (some browsers let localhost through).

### What is a preflight (OPTIONS) request?

For PUT or DELETE, or a request with Authorization or Content-Type: application/json, the browser first sends OPTIONS to ask for permission. The server has to answer with a 2xx and allow the method and headers in Access-Control-Allow-Methods and Access-Control-Allow-Headers. When a request fails, the explanation also shows whether it falls under this.

### How is this different from the curl code generator?

This one really sends the request and shows the response. To only convert a curl command into code in another language, or to check what its options mean, use the curl code generator, which sends nothing.
