API Tester

Browser requests are subject to CORS restrictions. OFF — Postman works because it's a desktop app; proxies let the browser bypass CORS.
KeyValueDescription
HeaderValueDescription

Pre-request Script

Runs before the request is sent. Use pm.environment.set(key, val), pm.globals.set(key, val), pm.variables.set(key, val), pm.request.headers.add({key,value}). Access pm.environment.get(key), console.log().

Tests

Runs after the response is received. Use pm.test(name, fn), pm.expect(value), pm.response.json(), pm.response.text(), pm.response.code, pm.response.responseTime, pm.response.headers.get(key).

Cookies are automatically managed by the browser for same-domain requests. You can also manually add cookies to send with requests.
NameValueDomain

Response

Send a request to see the response here.

Press Ctrl+Enter to send

Send your first REST request

Choose GET, enter a URL for an API you control, then select Send. Check the response status, elapsed time and body before adding authentication or editing the request. Use the response preview to copy the result, or generate a cURL command to reproduce the request in a terminal.

If a request succeeds in cURL and fails in your browser, check for a CORS preflight failure. For two JSON responses, use JSON Compare to see which values changed.