Postman

On this page 7

Postman is an API platform that lets developers compose, send, test and document API requests through a graphical client, and then organize those requests into shareable, scriptable collections. Among development tools in programming, it is one of the most widely used applications for exploring and verifying APIs without writing a dedicated client program.

Postman started in 2012 as a browser extension for sending HTTP requests and grew into a desktop and web application with team workspaces, automated test runs, mock servers and monitoring. Today it supports REST, GraphQL, gRPC, WebSocket and several other protocols, which makes it a common shared workbench for backend developers, testers and API consumers.

How Postman structures API work

Postman organizes work as a hierarchy of workspaces, collections, folders and requests. A request holds a method, URL, headers, authentication and body; a collection groups related requests together with shared scripts, variables and documentation.

Values that change between systems are kept out of the requests themselves. Variables written as {{baseUrl}} or {{token}} are resolved at send time from a defined scope hierarchy, so the same collection can target a local server, staging and production without edits.

ScopeWhere it livesTypical use
GlobalWhole workspaceRarely changing shared values
CollectionOne collectionBase path, API version
EnvironmentSelected environmentHost names, credentials per stage
DataCSV or JSON file in a runData-driven test iterations
LocalSingle request or runTemporary values set by scripts
Variable scopes in Postman, from broadest to narrowest

When the same name exists in several scopes, the narrowest scope wins. Misunderstanding this precedence is a classic source of requests that silently hit the wrong environment.

Scripting and automated testing in Postman

Postman runs JavaScript scripts before and after each request in a sandbox that exposes the pm object. Pre-request scripts prepare data, such as generating timestamps or signing a request, and post-response scripts inspect the reply and record assertions.

A typical test checks the status code, response time and JSON structure with calls like pm.test and pm.expect, and can store a value from the response, such as an access token, in a variable for the next request in the chain. This turns a collection into an executable API test suite.

RunnerWhere it runsBest suited for
Collection RunnerPostman applicationManual regression runs, data-driven tests
NewmanCommand line, Node.jsContinuous integration pipelines
Postman CLICommand lineCI runs reporting back to Postman
MonitorsPostman cloud on a scheduleUptime and contract checks of live APIs
Ways to execute a Postman collection

Running collections in continuous integration is where Postman tests deliver the most value, because every build then verifies that endpoints still return the expected contract.

Postman compared with other API clients

Postman is one of several tools for calling APIs, and the right choice depends on whether a team values a full collaborative platform or a lightweight, file-based workflow. The comparison below covers common alternatives.

ToolInterfaceStorage modelMain strength
PostmanDesktop and web GUICloud workspaces, exportable JSONCollaboration, testing, mocks
curlCommand lineShell scriptsUniversal, scriptable, minimal
InsomniaDesktop GUILocal or cloudClean interface, design features
BrunoDesktop GUIPlain files in GitOffline, version-control friendly
IDE extensionsInside the editorProject filesNo context switch from code
Postman and alternative API clients

A key difference is where request definitions live. Postman centers on synchronized workspaces, while file-based clients keep requests next to the source code in Git, which simplifies code review but offers fewer built-in collaboration features.

Beyond requests: design, mocks and documentation

Postman extends beyond sending requests into the broader API lifecycle. Teams can import an OpenAPI definition to generate a collection, or define an API in Postman and keep collections linked to it, which supports an API-first workflow.

  • Mock servers return saved example responses, so frontend work can start before the backend exists.
  • Generated documentation turns collection descriptions and examples into a browsable reference.
  • Code snippets convert a request into curl, Python, JavaScript and many other languages.
  • Flows and visualizers chain requests or render responses as charts and tables.

Collections are exported in the Postman Collection format, a published JSON schema, so they remain portable to other tools such as Newman and several competing clients.

Limitations and risks of using Postman

The most serious risk is accidental exposure of secrets. Tokens pasted into shared or public workspaces have repeatedly been found by outside parties, so credentials belong in secret-typed variables or a vault, never in request bodies or collection descriptions.

ProblemCauseFix
Leaked API keysSecrets saved in synced workspaceUse vault or secret variables, rotate keys
Request hits wrong stageWrong environment or scope clashCheck active environment, rename variables
Tests pass locally, fail in CIMissing environment file in pipelineExport environment, pass it to the runner
Collections drift from codeManual edits outside version controlExport to Git or sync with the API definition
Common Postman problems and their fixes

Teams should also weigh dependency on a cloud account and plan limits. Postman reduced its offline mode over time, which matters for regulated or air-gapped environments where data must not leave the internal network.

Finally, Postman tests are not a replacement for unit tests or load tests. Its runners execute requests sequentially and are designed for functional and contract checks; sustained performance testing at thousands of requests per second calls for dedicated tools such as k6 or JMeter, and business logic is still best verified closer to the code.

In everyday language

Programs often talk to each other by sending short requests over the internet and getting answers back. Postman is like a remote control for those conversations: a developer types in a request, presses Send and immediately sees the reply.

It can also save requests, check answers automatically and share everything with a team. The main idea is that people can test how a service behaves without building an app first.

Seen in the real world

A payments team at a mid-sized software company maintains a REST API used by its mobile apps. The team keeps a Postman collection of about 120 requests covering login, card tokenization, refunds and reporting, with environments for local, staging and production.

Each request has post-response tests that check status codes, required fields and a response time below 800 milliseconds. On every merge, the CI pipeline runs the collection with Newman against staging and blocks the deployment if any test fails. After a developer renamed a response field, the pipeline flagged 14 failing assertions within four minutes, and the change was fixed before any mobile release depended on it.