API Request Builder
GET · POST · PUT · PATCH · DELETEBuild and send real HTTP requests right from your browser -- headers, query params, JSON/form/GraphQL body, auth, environment variables, saved collections, request chaining and response diffing, plus ready-to-copy cURL / fetch / Python / Node code. Nothing passes through our server.
{{variable}} in the URL, headers, body & auth fields
Sending a GraphQL body switches the method to POST automatically.
Adds Authorization: Bearer <token> to your request headers.
Adds Authorization: Basic <base64(user:pass)>. Sent in the clear unless your target URL is https.
Checks run automatically against the response every time you send this request.
Real JavaScript, runs right in your browser -- like Postman's pre-request and test scripts. Nothing is sent anywhere.
Available pm API
pm.environment.get(name)/pm.environment.set(name, value)-- read or write the active environment's variablespm.response.code,pm.response.status,pm.response.responseTime(post-response only)pm.response.text(),pm.response.json(),pm.response.headers.get(name)(post-response only)pm.test(name, fn)-- register a test; throw insidefnto fail it (post-response only)pm.expect(value).to.equal/eql/include(x),.to.be.above/below(n),.to.be.ok(),.to.be.a(type)pm.visualizer.set(html, data)-- render custom HTML in the response's new "Visualize" tab (post-response only; runs sandboxed, your data is available there aswindow.responseData)console.log(...)-- shows up in the console output box below, right on this page
Turn this on to skip the real network call and get back a canned response instead -- build your frontend against an endpoint that doesn't exist yet, or re-run a saved failure case without hitting the real server.
Rendered by the post-response script's pm.visualizer.set(html, data) call -- runs sandboxed, cannot see or touch the rest of this page.
Saved in this browser only. Check two requests to compare their responses.
No requests sent yet this session — send one above and it'll show up here for quick reuse.
No saved collections yet — use the Save button next to Send to add your first request.