Developer

Postman Guide

Install Postman, understand the main workflow, and learn common API testing patterns.

Install

Postman installation

PlatformRecommended pathNotes
macOSDownload the Postman app from the official Postman site, then move it to Applications.Apple Silicon and Intel builds are handled by the official installer flow.
WindowsDownload and run the official Postman installer.Install per user unless your team manages software centrally.
LinuxDownload the official Linux package or use a supported package channel.Some teams prefer Snap or manually unpacking the app archive.
BrowserUse Postman on the web with the Postman Agent when local network access is needed.The desktop app is still useful for local APIs and full desktop workflows.

Workflow

Basic usage

  1. Create a workspace for the project or team.
  2. Create a collection and add requests such as GET, POST, PUT, PATCH, and DELETE.
  3. Use environments for variables like {{baseUrl}}, {{token}}, and {{userId}}.
  4. Configure authorization, headers, query parameters, and request body.
  5. Send the request, inspect status code, headers, cookies, timing, and body.
  6. Add tests to validate response status, JSON fields, and schema expectations.
  7. Run the collection manually, with data files, or in CI using Postman CLI/Newman when needed.

Examples

Common Postman scripts

Use caseSnippet
Status code testpm.test("Status is 200", () => pm.response.to.have.status(200));
JSON field testpm.test("Has id", () => pm.expect(pm.response.json()).to.have.property("id"));
Save tokenpm.environment.set("token", pm.response.json().access_token);
Use variablepm.request.headers.add({ key: "Authorization", value: `Bearer ${pm.environment.get("token")}` });
Response timepm.test("Fast response", () => pm.expect(pm.response.responseTime).to.be.below(1000));

FAQ

Questions people ask

What is Postman used for?

Postman is used to design, send, document, test, and automate API requests across REST, GraphQL, WebSocket, gRPC, and other API styles.

Do I need an account?

A Postman account is useful for sync and collaboration, while local and lightweight workflows can still be used depending on setup.

How should I manage environments?

Keep reusable values such as base URLs, tokens, and IDs in environments so requests stay portable between local, staging, and production.

Related tools

Continue working