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.
| Scope | Where it lives | Typical use |
|---|---|---|
| Global | Whole workspace | Rarely changing shared values |
| Collection | One collection | Base path, API version |
| Environment | Selected environment | Host names, credentials per stage |
| Data | CSV or JSON file in a run | Data-driven test iterations |
| Local | Single request or run | Temporary values set by scripts |
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.
| Runner | Where it runs | Best suited for |
|---|---|---|
| Collection Runner | Postman application | Manual regression runs, data-driven tests |
| Newman | Command line, Node.js | Continuous integration pipelines |
| Postman CLI | Command line | CI runs reporting back to Postman |
| Monitors | Postman cloud on a schedule | Uptime and contract checks of live APIs |
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.
| Tool | Interface | Storage model | Main strength |
|---|---|---|---|
| Postman | Desktop and web GUI | Cloud workspaces, exportable JSON | Collaboration, testing, mocks |
| curl | Command line | Shell scripts | Universal, scriptable, minimal |
| Insomnia | Desktop GUI | Local or cloud | Clean interface, design features |
| Bruno | Desktop GUI | Plain files in Git | Offline, version-control friendly |
| IDE extensions | Inside the editor | Project files | No context switch from code |
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.
| Problem | Cause | Fix |
|---|---|---|
| Leaked API keys | Secrets saved in synced workspace | Use vault or secret variables, rotate keys |
| Request hits wrong stage | Wrong environment or scope clash | Check active environment, rename variables |
| Tests pass locally, fail in CI | Missing environment file in pipeline | Export environment, pass it to the runner |
| Collections drift from code | Manual edits outside version control | Export to Git or sync with the API definition |
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.