JoyToolsJoyTools

REST API Tester

Hybrid Engine (Client + Cloud)

Send HTTP requests (GET, POST, PUT, DELETE) directly from your browser. View response body, headers, status codes, and timing. Export as cURL.

🔒 100% Client-Side Default (with optional stateless CORS Proxy): Requests and credentials are never logged or stored.
Verify Security →
Interactive Workspace

Enter a URL and click Send Request

Supports GET, POST, PUT, PATCH, DELETE • Bearer Token & Basic Auth

Share & Developer Embed

How do I use REST API Tester?

1

Click 'Load Sample Data' or select an HTTP method (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`) and enter your endpoint URL.

2

Configure Query Params, Headers, JSON/Raw Body, or Bearer/Basic Auth in the request tabs.

3

Click 'Send' (and toggle 'CORS Proxy' in the right sidebar if testing an external API without browser CORS headers) to inspect status, latency, and formatted JSON.

What features does REST API Tester offer?

7 HTTP methods: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS

JSON body editor with syntax validation

Bearer Token and Basic Auth support

Response with status code, timing, size, and headers

CORS Proxy mode for APIs blocking browser cross-origin requests

HTTP/1.1 & HTTP/2 Methods (RFC 9110), CORS Preflight & Status Codes

Browser-based HTTP requests use the Fetch API (`window.fetch`). Cross-origin requests with custom headers (like `Authorization`) or `application/json` bodies trigger an automatic `OPTIONS` preflight check.

RFC 9110 HTTP Request Methods & Idempotency Matrix
HTTP MethodRequest BodyIdempotent?Safe (Read-Only)?Typical REST API Semantics
GETNoYesYesRetrieve a resource or collection
POSTYes (JSON/Form)NoNoCreate a new resource or trigger an action
PUTYesYesNoReplace an entire resource deterministically
PATCH / DELETEYes (PATCH) / OptionalNo (PATCH) / Yes (DELETE)NoPartial update (PATCH) or remove resource (DELETE)

Frequently Asked Questions about REST API Tester

Why does my request fail with `TypeError: Failed to fetch` in Direct Browser mode?

Browsers enforce the Same-Origin Policy and block JavaScript from reading responses unless the target server returns `Access-Control-Allow-Origin`. Switch Processing Mode to 'CORS Proxy' in the right sidebar to relay the request server-side.

Can I test `http://localhost:3000` or `127.0.0.1:8080` APIs from this tool?

Yes—use 'Direct (Browser)' mode when testing local `localhost` servers (with CORS enabled on your local dev server), because a cloud CORS proxy cannot reach your private loopback network.

How are Bearer Token and Basic Auth headers encoded?

Bearer mode injects `Authorization: Bearer <token>`, while Basic Auth Base64-encodes `username:password` (`btoa`) into `Authorization: Basic <base64>` per RFC 7617.

Why do `GET` and `HEAD` requests ignore the Body tab?

Per RFC 9110 and the WHATWG Fetch specification, `window.fetch()` throws a `TypeError` if a request body is attached to a `GET` or `HEAD` request. Pass filter parameters via the Query Params tab instead.