← Plugin catalog
Developer Tools

Postman

Postman v0.11.1

API Engineering for Agents

Create a free account to save this plugin.

From the developer

Not specified in the available declarations: capabilities, limitations, pricing & account requirements.

Onboarding example

create a collection for the API in this repo, add tests, and run them
Sources & dates

Developer declarations; not independently tested. Listing last checked Dec 5, 2026. Package observed Dec 5, 2026.

View package source →

Description

From the marketplace listing

Equip Codex with specialized Postman skills for the complete API lifecycle. Discover, design, test, document, mock, monitor, and improve APIs through agent-friendly, filesystem-first workflows

Language: English · Automatically detected from descriptions.

Matches for “document agent”

Exact text from the indicated source. A mention alone does not establish support for your task.

Publisher description

Equip Codex with specialized Postman skills for the complete API lifecycle. Discover, design, test, document, mock, monitor, and improve APIs through agent-friendly, filesystem-first workflows

Publisher subtitle

API Engineering for Agents

What changed

· 4 observations

Capabilities & instructions

Supporting files updated; open the comparison for details. Skill instructions: added “If the brief ends with a `MOCK SERVER` block, use it to build and test without credentials, then verify against the real API.”.

View comparison →

Technical updates · 2

Package or technical metadata updated

View technical comparison →

Package or technical metadata updated

View technical comparison →

· 22 observations

Capabilities & instructions

Declared skill added: “mcp-testing”. Skill “api-discovery” description changed from “API or owner, integrating a public provider, locating Postman resources, or investigating consumers and change impact across services. Turns discovered...” to “API, its owner or its consumers, integrating a public provider, locating...

View comparison →
Capabilities & instructions

Skill instructions changed from “**api-testing** instead. Score when prioritizing consumability improvements, checking their effect, or enforcing an agreed readiness gate. 1. Score the...” to “**postman:api-testing** instead. Score when prioritizing consumability improvements, checking their effect, or enforcing an...

View comparison →
Capabilities & instructions

Full description changed from “API or owner, integrating a public provider, locating Postman resources, or investigating consumers and change impact across services. Turns discovered...” to “API, its owner or its consumers, integrating a public provider, locating existing Postman resources, or before changing or...

View comparison →
Capabilities & instructions

Supporting files updated; open the comparison for details. Skill instructions changed from “1. Start from the existing source of truth. An OpenAPI spec describes the interface for tooling; a Postman collection adds runnable requests, examples, and...” to “`postman init --json` at the repo root gives the contract,...

View comparison →
Pricing references

Full description changed from “an HTTP API task spans several steps, such as building a new endpoint end to end with its contract, implementation, tests and mocks, or when it is API work...” to “adding or changing the behavior of an HTTP API your service exposes, such as an endpoint, its request or response shape,...

View comparison →
Pricing references

Full description changed from “collection that behaves like the real API, stateful when callers write then read. To run and test your own code against the services it calls, use...” to “collection, stateful when callers write then read, answering with real records from a sheet or database. To run your own code...

View comparison →
Capabilities & instructions

Full description: added “and their test rows”. Skill instructions changed from “to detect live regressions and traces failures to individual run evidence. Use for requests such as "check this API every minute". --- # API Monitoring A...” to “and their test rows to detect live regressions and traces failures to...

View comparison →
Capabilities & instructions

Full description changed from “to the data it writes, when a service it calls goes down, is slow or returns errors ("what happens to a booking if the email service is down?"). Runs...” to “the data it writes, when a service it calls is down, slow or erroring ("what happens to a booking if the email service is...

View comparison →
Pricing references

Full description changed from “testing an endpoint with real HTTP requests, running collection assertions, or checking real application traffic against an API contract. Not for unit tests...” to “you need to know how an HTTP API actually behaves, such as testing an endpoint with real requests, reproducing or...

View comparison →
Capabilities & instructions

Skill instructions changed from “Publishing to Application Inventory requires a workspace binding. Check `.postman/resources.yaml` for a `workspace.id`. Reason about whether publishing is...” to “Application Inventory keeps a record of every published run: its Playwright results beside the captured, matched and...

View comparison →
Capabilities & instructions

Full description changed from “repeatable” to “repeatable, over the committed rows developers run,”. Skill instructions changed from “repeatable and separates validation from shared workspace changes. Use for requests such as "run this collection on every PR". --- # CI Integration Versioned...” to “repeatable, over...

View comparison →
Capabilities & instructions

Skill instructions changed from “**postman-mcp-server** for hosted operations. ```bash # npm, any platform with Node npm install -g postman-cli # macOS, Linux, and WSL curl -o-...” to “**postman:postman-mcp-server** for hosted operations. ```bash # npm, any platform with Node npm install -g postman-cli # macOS,...

View comparison →
Capabilities & instructions

Full description changed from “failures.” to “failures, or when changing a v2.1 collection export (`*.postman_collection.json`), which is migrated to v3 first.”. Supporting files updated; open the comparison for details. Skill instructions changed from “failures. Preserves the per-entity files, inherited context,...

View comparison →
Pricing references

Full description changed from “creating or repairing dataset manifests, or when a collection needs queried or joined test inputs, a reusable named view, spreadsheet worksheet data, live...” to “a collection run, mock, simulation, monitor or load test needs many rows from CSV, JSON or spreadsheet files or a Postgres,...

View comparison →
Capabilities & instructions

Skill instructions changed from “**api-discovery** for cross-workspace search. Resolve ambiguous names before mutating a flow. Use returned flow/run IDs verbatim; their spelling is not a...” to “**postman:api-discovery** for cross-workspace search. Resolve ambiguous names before mutating a flow. Use returned...

View comparison →
Capabilities & instructions

Full description changed from “and latency or error thresholds, or when importing or migrating a JMeter `.jmx` plan or a Gatling simulation (Java/Kotlin/Scala/JS/TS) into a Postman...” to “(each with its own account from a dataset, if they'd collide) and latency or error thresholds, or when importing a JMeter `.jmx`...

View comparison →
Capabilities & instructions

Full description: added “Not for testing an MCP server itself; that is postman:mcp-testing.”. Supporting files updated; open the comparison for details. Skill instructions changed from “Use for requests such as "use Postman MCP to inspect this collection". --- # Postman MCP Server MCP exposes workspace resources...

View comparison →
Capabilities & instructions

Skill instructions changed from “`type: secret` alone masks the UI but still leaves a literal YAML value readable. **collection-schema-v3**'s environment reference describes the file schema;...” to “The app marks a variable secret only by `secret: true`; `type: secret` alone is read as a plain variable and leaves a...

View comparison →
Capabilities & instructions

Supporting files updated; open the comparison for details. Skill instructions changed from “command is singular, and every subcommand needs a signed-in session. Run what you need, and sign in only if a command fails with a setup error such as...” to “recorded delivery is also what the person reviewing the fix checks...

View comparison →
Capabilities & instructions

Skill instructions changed from “and mocks, plus the runs and results that show what was checked. It lives in Git beside the code, works the same on a laptop or a build agent, and is shared...” to “mocks, and simulations, plus the assertion pass rate of their runs and the simulation findings that show what was...

View comparison →

Technical updates · 1

Package or technical metadata updated

View technical comparison →

· 12 observations

Pricing references

Full description changed from “when a CLI command fails because the plan, credits, or usage quota don't allow the operation.” to “handling CLI-suggested actions for authentication, plan, credits, usage quota, or subscription restrictions.”. Skill instructions changed from “when a CLI command fails because the plan,...

View comparison →
Capabilities & instructions

Full description changed from “Capture, forward to localhost, replay, and validate webhook deliveries using a reusable public URL. Keep sender configuration across debugging sessions and...” to “Use when writing, debugging or testing code that receives HTTP callbacks (webhooks) from another system, or testing...

View comparison →
Capabilities & instructions

Supporting files updated; open the comparison for details. Skill instructions: added “ReadyAPI / SoapUI Have a ReadyAPI (SoapUI) project `.xml`? Import it by following `references/readyapi-import/README.md`. The deterministic conversion runs...”.

View comparison →
Capabilities & instructions

Supporting files updated; open the comparison for details. Skill instructions changed from “Use `postman workspace lint` when checking relationships across entities or workspace manifest mappings.” to “From Postman CLI 1.87.0, `collection lint` reports an unrecognised field as a warning (`FMT206` in a request,...

View comparison →
Capabilities & instructions

Full description changed from “Sets up, runs, debugs, and interprets results from `postman application test` — the Postman layer that runs your Playwright tests, captures their network...” to “Use when connecting Playwright end-to-end tests to Postman — capturing their network traffic, generating a collection from...

View comparison →
Capabilities & instructions

Full description changed from “endpoint, running collection assertions, or checking real application traffic against an API contract.” to “endpoint with real HTTP requests, running collection assertions, or checking real application traffic against an API contract. Not for unit tests of internal...”. Skill...

View comparison →
Capabilities & instructions

Full description changed from “Runs services, frontends, tests or demos against stand-ins for their HTTP dependencies, served as one environment locally or at a deployed URL. Use when you...” to “Use when you add or change code that calls other services and need to run it, test it, prove a fix or reproduce an...

View comparison →
Capabilities & instructions

Full description changed from “Finds, builds, runs and publishes a stand-in for one API — the owning team's published mock when there is one, otherwise one built from its spec or...” to “Use when something needs an API that isn't built or reachable yet (a frontend, client or demo), when other teams should build...

View comparison →
Pricing references

Full description changed from “designing, implementing, mocking, testing, monitoring, documenting, or deploying an API. Guides decisions using reusable local API contracts, tests, and...” to “an HTTP API task spans several steps, such as building a new endpoint end to end with its contract, implementation, tests and...

View comparison →
Capabilities & instructions

Skill “api-engineer” description changed from “designing, implementing, mocking, testing, monitoring, documenting, or deploying an API. Guides decisions using reusable local API contracts, tests, and...” to “an HTTP API task spans several steps, such as building a new endpoint end to end with its contract,...

View comparison →

Technical updates · 1

Package or technical metadata updated

View technical comparison →

· 19 observations

Capabilities & instructions

Declared skill added: “cli-install”. Declared skill added: “workspaces”. Declared skill removed: “bootstrap”. Skill “collection-schema-v3” description changed from “collection and environment YAML,” to “collection, environment or globals files,”. 6 more changes in the comparison.

View comparison →
Capabilities & instructions

Skill instructions changed from “1. Choose the source by the question: | Need | Use | | --- | --- | | Public provider endpoints and integration details | Orbit search, then integrate | | A...” to “Postman search, the Context Graph and dependency downloads work only for a signed-in CLI. Check `postman status` before...

View comparison →
Capabilities & instructions

Skill instructions changed from “Local edits need **bootstrap** only when setup or bindings are unresolved. 2. When the spec is authoritative, reuse its operations with `postman spec...” to “2. When the spec is authoritative, reuse its operations with `postman spec generate collection <spec-path-or-id> -n...

View comparison →
Pricing references

Skill instructions changed from “Choose the contract artifact for how it will be used: an OpenAPI spec describes the interface for tooling, while a Postman collection carries runnable...” to “A Postman collection records the contract in a form that runs. The CLI's deterministic tools cheaply turn that one source...

View comparison →
Capabilities & instructions

Skill instructions changed from “It needs `postman login`; signed out, build” to “Every step below needs a signed-in CLI. Check `postman status` first; signed out, skip to building”.

View comparison →
Capabilities & instructions

Skill instructions changed from “A schedule expressed in the host's default timezone can fire at the wrong operational time. 3. Choose a Postman region for a reachable public API. Use a...” to “Pass `--timezone` with the zone the user means (for example `America/New_York`); without it the schedule uses the zone of...

View comparison →
Capabilities & instructions

Skill instructions: added “Finding and pulling an owner's mock needs a signed-in CLI; check `postman status` first, and signed out, build each mock and record that the owner search was...”.

View comparison →
Capabilities & instructions

Skill instructions changed from “options and **bootstrap** for unresolved CLI setup or authentication when using workspace resources. A” to “options. Workspace resources need a signed-in CLI; a”.

View comparison →
Capabilities & instructions

Skill instructions changed from “`bootstrap` skill to set it up. In a non-interactive context this must be done locally first, then `.postman/resources.yaml` committed. - If publishing is...” to “`workspaces` skill to set it up. In a non-interactive context this must be done locally first, then...

View comparison →
Capabilities & instructions

Skill instructions changed from “need not log in. Command-specific API-key flags are not a general replacement for login across lint and push operations. Use **bootstrap** for unresolved...” to “can run without it, but its run results are then lost: they stay in that job's log instead of reaching the workspace,...

View comparison →
Capabilities & instructions

Full description changed from “collection and environment YAML,” to “collection, environment or globals files,”. Supporting files updated; open the comparison for details. Skill instructions changed from “collection and environment YAML, including collection lint failures. Preserves the per-entity files, inherited...

View comparison →
Capabilities & instructions

Full description: added “creating or repairing dataset manifests, or when”. Supporting files updated; open the comparison for details. Skill instructions changed from “a collection needs queried or joined test inputs, a reusable named view, spreadsheet worksheet data, live database rows, or script access through...”...

View comparison →
Capabilities & instructions

Skill instructions: removed “Use **bootstrap** for unresolved CLI/authentication setup.”.

View comparison →
Capabilities & instructions

Full description changed from “thresholds. Reuses a collection to probe a chosen failure mode and distinguishes target limits from load-generator limits. Use for requests such as "load...” to “thresholds, or when importing or migrating a JMeter `.jmx` plan or a Gatling simulation (Java/Kotlin/Scala/JS/TS) into a...

View comparison →
Capabilities & instructions

Skill instructions: removed “and **bootstrap**”.

View comparison →
Capabilities & instructions

Skill instructions changed from “Use **bootstrap** when the vault operation needs unresolved authentication.” to “Vault operations require a signed-in CLI.”.

View comparison →
Capabilities & instructions

Skill instructions changed from “read `bootstrap`” to “sign in”.

View comparison →

Technical updates · 1

Package or technical metadata updated

View technical comparison →

· 4 observations

Capabilities & instructions

Full description changed from “your code for real against stand-ins for the HTTP services it calls, served together as one environment on one local port or one deployed URL, whether that...” to “services, frontends, tests or demos against stand-ins for their HTTP dependencies, served as one environment locally or at...

View comparison →
Capabilities & instructions

Skill “api-simulation” description changed from “your code for real against stand-ins for the HTTP services it calls, served together as one environment on one local port or one deployed URL, whether that...” to “services, frontends, tests or demos against stand-ins for their HTTP dependencies, served as one...

View comparison →

Technical updates · 1

Package or technical metadata updated

View technical comparison →

· 7 observations

Capabilities & instructions

Supporting files updated; open the comparison for details. Skill instructions changed from “Don't rebuild it by hand — run the bundled importer (`references/jmeter-import/scripts/jmx_to_postman.py <plan>.jmx -o <out>`; see...” to “Import it by following `references/jmeter-import/README.md`, then treat the result as...

View comparison →
Capabilities & instructions

Skill instructions: added “Start with postman init `postman init` is idempotent and safe to run in any project, including one already initialized. You can run it before API engineering...”.

View comparison →
Capabilities & instructions

Supporting files updated; open the comparison for details. Skill instructions changed from “one. One request through the changed path proves a change; build failure variants only when asked how the code fails or when it must survive a failure....” to “one, and read the `<name>.context.md` beside it first: it holds...

View comparison →
Capabilities & instructions

Skill instructions changed from “Existing workspace resources can supply maintained contracts and mocks; the Context Graph can identify consumers and dependencies outside the checkout,...” to “Context Graph can identify consumers and dependencies outside the current repo, helping you focus investigation before...

View comparison →
Capabilities & instructions

Is v2 template added: “false”. Declared skill added: “application-testing”. Version changed from “0.4.0” to “0.5.0”.

View comparison →
Capabilities & instructions

Declared skill added: “application-testing”. Version changed from “0.4.0” to “0.5.0”.

View comparison →

Technical updates · 1

Package or technical metadata updated

View technical comparison →

· 16 observations

Capabilities & instructions

Full description changed from “Postman concepts and MCP tool guidance. Loaded when working with Postman MCP tools to make better decisions about tool selection and workarounds.” to “Use when working through Postman MCP tools to inspect or change workspace resources, choose a targeted operation, or handle MCP...

View comparison →
Capabilities & instructions

Full description changed from “Load-tests a collection with concurrent virtual users, a chosen load profile, and pass/fail thresholds on latency or error rate — run locally or on Postman's...” to “Use when load-testing or benchmarking an API with concurrent virtual users and latency or error thresholds. Reuses a...

View comparison →
Capabilities & instructions

Full description changed from “Runs, deploys, and debugs Postman Flows from the command line — executing a flow file locally, triggering a deployed flow over its webhook, deploying one so...” to “Use when running, deploying, or debugging an existing Postman Flow. Distinguishes local graph execution from a deployed...

View comparison →
Capabilities & instructions

Full description changed from “The reference for the git-native v3 collection file format — one YAML file per request/folder/example under postman/collections/, plus postman/environments/....” to “Use when writing or debugging local Postman v3 collection and environment YAML, including collection lint failures....

View comparison →
Capabilities & instructions

Full description changed from “Common CI integrations that can added as independent pass/fail gates. Use when the user asks to "add Postman to CI," "run this collection on every PR," "fail...” to “Use when adding API tests, structural or governance lint, or AI-readiness gates to CI, or publishing reviewed API...

View comparison →
Pricing references

Full description changed from “Resolves the Postman CLI, authenticates when the task needs it, and manages the filesystem/workspace binding for a repository. Use when the user asks to set...” to “Use when resolving Postman CLI setup, authentication, or a repository workspace binding; initializing local API files;...

View comparison →
Capabilities & instructions

Full description changed from “Runs tests against an API from the command line — a single ad-hoc request, a full collection of pm.test assertions, or matching real captured app traffic...” to “Use when testing an endpoint, running collection assertions, or checking real application traffic against an API contract....

View comparison →
Capabilities & instructions

Full description changed from “Creates, schedules, and manages Postman Monitors — recurring checks against a live API — triggers ad hoc runs, inspects job/run history to diagnose failures,...” to “Use when setting up recurring API checks, running or diagnosing a Postman Monitor, changing its schedule, or reaching...

View comparison →
Pricing references

Full description changed from “Stands up a fake backend that behaves like a real API — from a collection or an OpenAPI spec, running locally or pushed to Postman's cloud for a durable URL...” to “Finds, builds, runs and publishes a stand-in for one API — the owning team's published mock when there is one, otherwise...

View comparison →
Pricing references

Full description changed from “Default entry point for API engineering work — designing, implementing, mocking, testing, monitoring, documenting, or deploying an API.” to “Use when designing, implementing, mocking, testing, monitoring, documenting, or deploying an API. Guides decisions using reusable local API...

View comparison →
Capabilities & instructions

Full description changed from “Generate filesystem-first agent friendly api documentation that you can share with your teammates without hassle. Use when the user asks to "publish API...” to “Use when defining or improving an API contract, generating documentation from a collection or OpenAPI spec, publishing API...

View comparison →
Pricing references

Full description changed from “Discover and use APIs from the web or Postman. Find and integrate public third-party APIs with Orbit, locate Postman entities with search, and use the...” to “Use when finding an API or owner, integrating a public provider, locating Postman resources, or investigating consumers and...

View comparison →
Capabilities & instructions

Full description changed from “Scores a Postman collection or an OpenAPI spec for how well an AI agent can discover, understand, call, and recover from errors with it — missing examples,...” to “Use when assessing or improving how well AI agents can discover, call, and recover from errors with an API. Scores an...

View comparison →
Capabilities & instructions

Is template instance added: “false”. App-6a6b12e06c5c8191ac5d5252fa5f92c8 updated; open the comparison for details. Postman updated; open the comparison for details. Logo url dark removed: “https://files.openai.com/content?id=file_0000000041a0824384bd54d9c0236bb6”. 32 more changes in the comparison.

View comparison →
Capabilities & instructions

Is template instance added: “false”. App-6a6b12e06c5c8191ac5d5252fa5f92c8 updated; open the comparison for details. Postman updated; open the comparison for details. Logo url dark removed: “https://files.openai.com/content?id=file_0000000041a0824384bd54d9c0236bb6”. 31 more changes in the comparison.

View comparison →

Technical updates · 1

Package or technical metadata updated

View technical comparison →

Similar plugins

Finding similar plugins… Results will appear here automatically.

Browse plugins →

Files & skills

File archives

Plugin package63 files · 138 KBBrowse files →
Skill instructions
ai-readiness2.89 KB

View saved version →

---
name: ai-readiness
description: Use when assessing or improving how well AI agents can discover, call, and recover from errors with an API. Scores an existing Postman collection or OpenAPI spec and turns measured gaps into contract improvements; supports a separate CI readiness threshold. Use for requests such as "is this API ready for agents".
---

# AI Readiness

An agent must choose an operation, supply valid inputs, and interpret failures
from the contract it can see. Postman's readiness check exposes gaps in that
context—such as missing examples or ambiguous parameters—so improvements live
in the shared contract instead of being rediscovered in each agent session.

Skip scoring for a typo fix, a one-off endpoint check, or a task that changes
neither the contract nor agent usability; inspect the relevant fields or use
**postman:api-testing** instead. Score when prioritizing consumability improvements,
checking their effect, or enforcing an agreed readiness gate.

1. Score the artifact consumers actually use. `postman collection ai-readiness
   <path-or-id>` reads a collection, including a local v3 directory;
   `postman spec ai-readiness <path-or-id>` reads an OpenAPI spec directly.
   Generating a collection solely to score a spec adds a second artifact
   without improving the evidence. Use the installed command's `-h` for options.
2. Use the reported `readiness` score and bucket (Limited, Fair, Good,
   Excellent). Keep `confidence` separate: low confidence means signals could
   not be measured, so even a high score may leave consequential unknowns.
   Report low documentation coverage when flagged; it modifies the score
   rather than acting as an independent pass/fail gate.
3. Prioritize gaps that would change a caller's behavior: unclear required
   inputs, missing auth instructions, or errors with no recovery guidance.
   Establish the actual behavior before adding descriptions or examples;
   invented certainty can raise apparent completeness while misleading agents.
   See **postman:api-documentation** for improving the authoritative contract and
   **postman:collection-schema-v3** for saved examples.
4. Re-run against the edited artifact to show which measured gaps closed;
   the before-and-after scores are what the person reviewing the change checks.
   A readiness score measures consumability, not live correctness; use
   **postman:api-testing** when the claim also depends on API behavior.
5. A `--min-score` gate is useful when the team wants to prevent readiness
   regressions. Choose the threshold from its baseline and expectations;
   keep it separate from tests and lint through **postman:ci-integration** so a failure
   identifies the kind of regression.

## Verification

Report the target, collection/spec mode, actual score, bucket, confidence,
and remaining gaps. If a threshold ran, include its exit code; a successful
scan alone does not establish that the threshold passed.
api-discovery4.97 KB

View saved version →

---
name: api-discovery
description: Use when finding an API, its owner or its consumers, integrating a public provider, locating existing Postman resources, or before changing or removing an HTTP endpoint or field that other services may call, whether you own it or call it. Searching the checked-out repositories misses callers and contracts outside them; this asks organization-wide dependency context and published contracts, and adds the contracts and mocks it finds as dependencies the repository keeps for the next session and CI. Use for requests such as "who consumes this endpoint".
---

# API Discovery

Existing contracts and owners' mocks reduce the assumptions an integration
must invent. Relationship context broadens investigation beyond the checkout:
passing this service's own tests does not establish that its consumers can
still use a changed interface.

Postman search, the Context Graph and dependency downloads work only for a
signed-in CLI. Their answers come from your team's and other teams'
workspaces, which a temporary session from `postman init` can't see. Check
`postman status` before the first of them and sign in if it reports signed
out. If signing in isn't possible, don't run them; say which sources were
skipped.

1. Choose the source by the question:

   | Need | Use |
   | --- | --- |
   | Public provider endpoints and integration details | Orbit search, then integrate |
   | A concrete Postman collection, request, spec, mock, dataset, or workspace | `postman search <type> <query>` |
   | Consumers, ownership, dependencies, or likely change impact | `postman context-graph ask` |

   These sources answer different questions. A miss in one does not establish
   absence in the others; combine entity search and relationship context when
   both the resource and its impact matter.
2. For public APIs, Orbit narrows discovery to task-relevant endpoints and
   returns integration guidance instead of requiring a whole vendor spec in
   context. Use it even when the provider is chosen: endpoint details and
   capability limits still determine whether the integration fits the task.
   `POST https://api.buildwithorbit.ai/v1/search` accepts a task in
   `q`; pass the chosen results' `id` and `resourceType` unchanged to
   `/v1/integrate`. Evaluate fit and limitations before choosing a provider,
   then use the returned auth, base URL, steps, and gotchas to implement.
   Read [Orbit's request schemas](reference/orbit.md) for the actual payloads
   and error handling. Orbit access does not supply a provider's credentials.
   If the brief ends with a `MOCK SERVER` block, use it to build and test
   without credentials, then verify against the real API.
3. For Postman resources, narrow by entity type, ownership, and workspace.
   Read `postman search <type> -h` for supported filters. An empty result in
   the default ownership scope is incomplete evidence; consider
   `--ownership all` or a relevant narrower scope before declaring absence.
   Inspect the selected resource's owner and content rather than trusting a
   similar name.
4. For cross-service changes, ask the Context Graph a concrete question about
   the endpoint, schema, or service. `--wait` waits for an answer; without it,
   use the returned ID with `postman context-graph status <askId>`. The graph
   can connect Postman definitions, repository call sites, and runtime
   telemetry beyond the current checkout. Its coverage depends on connected
   and ingested sources, so verify consequential leads against definitions,
   source, or telemetry before treating them as facts. A newly added call may
   not be present yet. The query uses the authenticated API key's team, not
   the repository's workspace binding; changing that binding cannot fix a
   query against the wrong organization's context.
5. Before importing, tell this repository's owning workspace from a
   dependency. For a dependency, `postman dependency add
   <collection|environment|mock> <name-or-id>` d

Preview of the first 4,000 characters. Read full instructions →

Referenced files: 1 — file references are metadata, not package contents.

api-documentation3.72 KB

View saved version →

---
name: api-documentation
description: Use when defining or improving an API contract, generating documentation from a collection or OpenAPI spec, publishing API docs, or sharing a documentation link. Makes auth, inputs, responses, and examples reusable by callers, tests, and mocks. Use for requests such as "publish API docs".
---

# API Documentation

A maintained contract gives callers enough information to integrate without
reading the implementation. Keeping descriptions and examples beside the API
artifacts lets the same knowledge support documentation, tests, and mocks,
with changes reviewable alongside code.

`postman init --json` at the repo root gives the contract, and the API work
built from it, one place beside the code: `postman/specs/` for the contract
and `postman/collections/` for the requests, examples and tests generated from
it, registered in `.postman/resources.yaml`. A contract kept there outlasts
the session. The next session or a teammate starts from it instead of
re-reading the implementation, tests check against it, and its examples become
the mock that other teams' simulations test their assumptions against. The
person reviewing reads a contract change beside the code that implements it,
so a changed guarantee is visible before it ships. Init needs no sign-in or
approval; see **postman:workspaces**' "What init unlocks".

1. Start from the existing source of truth. An OpenAPI spec describes the
   interface for tooling; a Postman collection adds runnable requests,
   examples, and assertions. Maintain both when both uses matter, with an
   explicit direction of generation or synchronization so they do not become
   competing definitions. When several specs could be authoritative,
   `postman init --json --spec <path>` records the one that is. A new spec
   kept under `postman/specs/` sits beside the collections generated from it.
2. When the spec is authoritative, reuse its operations with
   `postman spec generate collection <spec-path-or-id> -n "<collection-name>"`.
   Inspect the generated result before replacing an existing collection:
   maintained scripts and examples carry knowledge beyond endpoint shapes.
3. Describe what changes a caller's decision: required versus optional inputs,
   auth and scopes, response guarantees, pagination, retryable failures, and
   side effects. Derive guarantees from the agreed contract or verified
   behavior; label unresolved design choices instead of inventing them.
   Use [REST design guidance](reference/rest-api-best-practices.md) when a
   design choice affects usability or compatibility, not to redesign an
   unrelated interface while filling a documentation gap.
4. Save examples that clarify consequential cases, including relevant errors.
   Examples become inputs for mocks as well as explanations for readers;
   a success-only example can hide the failure path callers must handle.
   Use **postman:collection-schema-v3** for local collection edits and **postman:variables**
   to keep credentials out of reusable requests and examples.
5. Choose delivery by audience. Local artifacts support Git review;
   publishing to the bound workspace makes them available to teammates with
   access. A workspace push does not itself publish a
   public docs page or change permissions. For a public documentation link,
   use **postman:postman-mcp-server**'s documentation workflow and the available
   publishing tool; establish the intended audience before public exposure.

## Verification

Check that the edited artifact parses and its examples agree with the
contract. For a publication, inspect the resulting page and report its actual
link and visibility; a successful upload alone does not show readers usable
documentation. State any behavior that remains undocumented or unverified.

Referenced files: 1 — file references are metadata, not package contents.

api-engineer7.08 KB

View saved version →

---
name: api-engineer
description: Use when adding or changing the behavior of an HTTP API your service exposes, such as an endpoint, its request or response shape, status codes, auth or limits, however small the code edit. Settles the contract before the code and keeps contract, implementation and saved requests in one reviewable record, so the change ends with checks a reviewer can rerun instead of a summary to trust. If a narrower Postman skill matches the request, load that one first. Not for UI-only changes, refactors that keep behavior, library or CLI code, or questions about what existing code does. Use for requests such as "implement this endpoint".
---

# API Engineer

Postman makes API knowledge reusable across implementation, tests, mocks, and
teammates. Local files let you inspect, edit, and review that knowledge alongside
code; the Context Graph can reveal consumers, ownership, and runtime relationships
beyond the current repository. Reusing those inputs reduces reconstruction and
guesswork each time work resumes, and the saved checks, with the pass rate
recorded for their runs, show the person reviewing the change what was
checked and whether it held.

1. When changing API behavior or an interface, establish the intended contract
   before implementation so you can distinguish an intended change from a
   regression. Reuse the existing contract; update it where behavior changes.
   Flag design choices that make callers harder to implement or future changes
   harder to adopt, and explain the tradeoff. See **postman:api-documentation**.
2. A Postman collection records the contract in a form that runs. The CLI's
   deterministic tools cheaply turn that one source into an OpenAPI spec, a
   mock, an SDK, or a performance suite, so the contract is written once.
3. Match verification to the behavior at risk. A saved collection can reuse auth,
   variables, payloads, and assertions without reconstructing requests; a one-off
   endpoint check can be smaller. Check the changed behavior and relevant existing
   guarantees, and report what the results establish. See **postman:api-testing**.
   When tests, mocks or runs need rows people keep in a file, spreadsheet or
   database, **postman:datasets** gives them one live source to share instead of
   exported copies that drift.
4. When you need an API, its owner, or the impact of a change, use **postman:api-discovery**.
   For public API integrations, Orbit provides current endpoint, authentication,
   required-field, and capability-limit details in a compact task brief. Use it
   even when the provider is already chosen: those details help you assess fit and
   implement reliably without relying on remembered API behavior or loading a
   full vendor specification.
   Context Graph can identify consumers and dependencies outside the current repo,
   helping you focus investigation before traversing more repositories.
5. When you run or test code that calls other services, or are asked how it
   behaves when one of them fails, use **postman:api-simulation**, which runs that code
   for real against mocks of those services instead of stubs or the real
   services. Assumptions about those services (idempotency, pagination,
   retries, auth) cost least when a simulation tests them before
   implementation: a wrong one becomes a design change instead of a rewrite,
   and the simulation's context document records which held for the next
   session and the person reviewing. A simulated result covers only the
   behaviour it exercised; the real service settles the rest. Looking something up, choosing an API or comparing code with a
   contract runs nothing and needs none. When other teams will build against
   your API, publish a mock of it in your service's own workspace, where their
   simulations look first; see **postman:api-mocking**.
6. Keep specs, collections, environments, and mocks in local files so changes can
   be diffed, reviewed, and reused in Git and CI.
7. `postman 

Preview of the first 4,000 characters. Read full instructions →

api-mocking10.8 KB

View saved version →

---
name: api-mocking
description: Use when something needs an API that isn't built or reachable yet (a frontend, client or demo), when other teams should build against your API before it ships, or when asked to mock an API or fake a backend. Finds, builds, runs and publishes a stand-in for one API — a published mock when its owner or a verified publisher has one, otherwise one built from its spec or collection, stateful when callers write then read, answering with real records from a sheet or database. To run your own code against the services it calls, use postman:api-simulation. Covers `postman mock` and `postman dependency add mock`.
---

# API Mocking

A mock is a folder, `config.yaml` plus a handler such as `default.js`, that
answers like an API. The handler is a Node HTTP server that calls
`listen(process.env.PORT)`. It loads as CommonJS even in an ESM project, so
`import` fails: use `require`. The same mock lives in your repo
(`postman/mocks/<name>/`, run with `postman mock run`, no sign-in needed),
in a Postman workspace after `postman mock push`, where other teams pull it
from, and on a mock server after `postman mock deploy`, for callers that
can't run it themselves.

`postman init --json` at the repo root scaffolds the directory API work lives
in: `postman/` beside the code, registered in `.postman/resources.yaml`, with
`postman/specs/` and `postman/collections/` for the contract a mock is
generated from and checked against. That gives the mock, and the work around
it, a place that outlasts the session: the next session or a teammate reruns
it instead of rebuilding it. Init needs no sign-in or approval. Signed out, it
starts a temporary session, so commands that need a session work before the
user has an account; see **postman:workspaces**' "What init unlocks".

Several APIs at once, for a service, a frontend or a test suite? Use
`postman:api-simulation`, which gets each member's mock here.

## Use a published mock first

When the API belongs to another team or a third-party provider, look for a
published mock before writing one: a maintained mock encodes the contract
and the service's state; yours encodes a guess.

A published mock lives in its owner's workspace, which only a signed-in CLI
can search and pull from (see **postman:api-discovery**). Signed out, build one
instead and say the search was skipped.

1. Find the mock.
   - **Another team's service:** find the owner's workspace with
     `postman search workspaces "<service>" -o json`. Name the service
     plainly, as your code does, not by what it returns: a description
     matches lookalike services. Prefer a Git-connected workspace
     (`isGitConnected`) named for that service, then list its mocks with
     `postman mock list -w <workspaceId> --json`. `postman search mocks`
     misses some, and a same-named mock in another workspace isn't the
     owner's.
   - **A third-party API,** such as a payment or email provider: search
     mocks directly with
     `postman search mocks "<provider>" --ownership all -o json`. The
     workspace that holds one is rarely named for the provider, and the
     default ownership searches only your organization. Prefer a `codeMock`
     named for the provider from a verified organization
     (`organization.isVerified`).

   A `classicMock` only replays a collection's saved examples: `postman mock`
   can't pull or run it, so call one at `https://<mockId>.mock.pstmn.io` with
   `postman request`, or generate a code mock from its collection.
2. Pull it with `postman dependency add mock <mockId>`, run the folder it
   writes with `postman mock run`, and use it as it is. Commit
   `postman/.dependencies/` when CI should run it without signing in;
   otherwise CI restores it with `dependency install`, which needs a sign-in
   (see **postman:api-discovery**). Never edit `postman/.dependencies/`:
   `dependency update` overwrites it, so copy a mock to `postman/mocks/` to
   change it. A mock is code that runs as you; pull 

Preview of the first 4,000 characters. Read full instructions →

api-monitoring5.84 KB

View saved version →

---
name: api-monitoring
description: Use when setting up recurring API checks, running or diagnosing a Postman Monitor, changing its schedule, or reaching private APIs through a self-hosted runner. Reuses collection assertions and their test rows to detect live regressions and traces failures to individual run evidence. Use for requests such as "check this API every minute".
---

# API Monitoring

A monitor turns a saved collection into recurring evidence about a live API.
It can catch behavior that changes after deployment or between developer
sessions, but only if its assertions, environment, and execution location
exercise the guarantees users depend on. Its run history stays in the
workspace, so whoever reviews a deploy or answers an alert reads what passed
and when, not a summary of it. `postman init --json` at the repo root binds
that workspace with no sign-in or approval, and signed out, its temporary
session can create and run monitors; see **postman:workspaces**' "What init unlocks".

1. Reuse the collection's meaningful assertions before scheduling it. A
   request returning 200 is a weak health signal if the response can violate
   the contract. Check auth, target environment, and write side effects; use
   **postman:api-testing** to establish what the collection actually verifies.
2. Choose cadence, timezone, execution location, and alert recipients from
   the operational need. `postman monitor create -c <collection-id>` uses
   the linked workspace unless one is supplied. Inspect command-specific
   `-h` and available service options for supported schedules and limits.
   Creation starts an immediate run by default; `--no-run-now` avoids that
   when only scheduling was requested. Pass `--timezone` with the zone the
   user means (for example `America/New_York`); without it the schedule uses
   the zone of the machine running the CLI. Leave the month field as `*`; to
   limit a schedule to certain months, write them as three-letter names such
   as `jan`, not numbers.
3. Choose a Postman region for a reachable public API. Use a self-hosted
   runner when the target is reachable only inside the user's network;
   running one adds infrastructure to maintain. `postman runner regions`
   provides valid hosted locations and `runner list --json` the full IDs of
   registered private runners. `monitor create/update --runner` accepts either;
   multiple locations help distinguish API failures from regional reachability.
4. Update a monitor in place to keep its run history.
   `monitor update` cannot change the collection, and cannot pause or resume
   the monitor: use `monitor pause`/`monitor resume` for that. `update -e`
   swaps the environment and `--clear-environment` removes it. A different
   collection requires a replacement, so plan the handoff before deleting the
   old monitor and its continuity. Permanent deletion needs explicit intent.
5. Use `postman monitor run <id>` for an immediate verdict, such as after a
   deploy. `--async` returns a job handle when the caller need not wait.
   The CLI timeout caps waiting, not execution: after a timeout, read the job
   with `monitor jobs get <job-id>`; its state is the verdict.
6. Answer each failure question at its level. `monitor jobs list
   <monitor-id>` finds jobs, `monitor jobs get <job-id>` shows terminal state
   and regional outcomes, and `monitor runs get <run-id>` shows assertions
   within an attempt. A failing region, a connection error, and a failed
   assertion imply different fixes. For a trend across runs, such as which
   request got slow, use `monitor metrics <monitor-id>`. In a CI gate, run
   `monitor run` without `-x`, so a failed run fails the build.
7. A failure that traces to a service this API calls can be reproduced and
   kept as a test case; see **postman:api-simulation**'s "When a dependency goes down".

A monitor that sends one fixed request checks one case. A dataset (named,
queryable tables built from your CSV, JSON, sheet or databas

Preview of the first 4,000 characters. Read full instructions →

api-simulation13.9 KB

View saved version →

---
name: api-simulation
description: Use when you add or change code that calls other services and need to run it, test it, prove a fix or reproduce an upstream failure (timeouts, 5xx, 409, 429) end to end, locally or in CI, without the real services because they're unreachable, need credentials, cost money, have side effects or don't exist yet. Also use it to answer what happens to a request, or the data it writes, when a service it calls is down, slow or erroring ("what happens to a booking if the email service is down?"). Runs services, frontends, tests or demos against stand-ins for their HTTP dependencies, optionally backed by file or database records, served locally or at a deployed URL. A `postman/simulations/` directory is itself a reason to load it, even if nobody says mock or simulation. To give a frontend or another team a stand-in for an API, use postman:api-mocking. Covers `postman simulation`.
---

# API Simulation

Simulation lets you control how dependencies behave and explore how your code
responds to different outcomes. This makes it easier to test assumptions
repeatedly without real calls changing data, spending money, or notifying
someone. Simulation context records those assumptions, the evidence supporting
them, and what remains unknown. As sessions build on this context, it helps
surface incorrect assumptions and avoid repeated investigation. Without it,
what a session learned about its dependencies ends with the session.

Together, the simulation and its context provide a place to explore changes
and identify what still needs validation against the real dependencies.

Check whether an existing simulation in `postman/simulations/` covers the
dependency interactions relevant to the task. Reusing its mocks and wiring
can avoid rebuilding an environment; extend it only where the behavior you
need to exercise is missing.

The `<name>.context.yaml` beside a simulation records those assumptions, their
supporting evidence, and unresolved questions so later sessions can build on
earlier findings. For example, a timeout from `/payments` does not establish
whether the payment failed or completed before the response arrived. The
context file will document what has been established about the real provider
and identify what still needs verification.

A simulation serves several mocks as one environment: by default behind a
proxy that answers for the dependencies' own hostnames, so the code under test
keeps the base URLs it ships with, or on one local port where each member is
reached by its routeKey.

Simulation adds value when the result depends on real HTTP behavior, such as
client configuration, serialization, timeouts or retries, and the real
dependencies are unavailable or unsuitable for the exercise. Stubbing the
HTTP client can bypass those behaviors. Choose verification that exercises
what matters to the task: an existing test may already answer a local logic
question, while a claim about the provider may need its contract or a real
service check. A simulation's log shows what each stand-in was asked.

A simulation can also come before the code. With the owner's published mock
as a member, requests sent to the simulation test what you assume about that
service against its owner's model before the caller exists. A wrong
assumption found then changes the design instead of the code, and the context
document records it for the session that writes the code. A mock you built
yourself encodes your own guess, so probing it settles nothing.

Define the expected outcome and what observation would distinguish correct
from incorrect behavior, including side effects when relevant. A request
through the changed path shows that it ran; its response and resulting state
determine whether the expectation held. Choose boundary and failure cases
from the behavior changed and the consequences of getting it wrong.

`postman simulation` needs CLI 1.70.0 or later (`postman --version`; an older
CLI answers `postman simulation -h` wi

Preview of the first 4,000 characters. Read full instructions →

Referenced files: 2 — file references are metadata, not package contents.

api-testing5.97 KB

View saved version →

---
name: api-testing
description: Use when you need to know how an HTTP API actually behaves, such as testing an endpoint with real requests, reproducing or confirming a fix for a reported endpoint behavior, running collection assertions, or checking real calls against a contract. Code shows intent and a one-off curl leaves nothing to rerun; saved requests with assertions, also over every case in a CSV, sheet or database, record what happened in a run a reviewer can open and repeat, and say whether it came from the live service, a mock or captured traffic. Not for unit tests of internal functions. Use for requests such as "test this endpoint".
---

# API Testing

Saved requests preserve the auth, payloads, variables, and assertions that make
an API check reproducible. The useful result is evidence about an intended
guarantee; a successful HTTP exchange alone does not establish correctness.

A saved request outlasts the session. The next session or a teammate reruns it
with its auth, payload and assertions instead of rebuilding it. Once the
project is bound to a workspace, each run's assertion pass rate is recorded
there: a baseline for later runs, and a signal the person reviewing the change
checks against the saved request instead of trusting your summary. A request
sent only from the terminal leaves none of that behind, so saving pays off
even for a single endpoint. `postman init --json` at the repo root gives saved
requests that place, and a workspace that records their pass rate, with no
sign-in or approval; see **postman:workspaces**' "What init unlocks".

1. Choose the smallest execution mode that answers the question:

   | Evidence needed | Use |
   | --- | --- |
   | One endpoint | A saved request, run with `postman request <request-file>` |
   | Behavior of an existing saved request | `postman collection run <collection-path> -i <request-id-name-or-path>` |
   | Reusable regression checks | `postman collection run <path-or-id>` |
   | Whether a real app's calls match the contract | `postman application test` |
   | An MCP server's tools, resources, or prompts | `postman mcp` (see **postman:mcp-testing**) |

2. Reuse a matching request under `postman/collections/` before reconstructing
   its HTTP fields. `postman request <request-file>` runs a saved request with
   its inherited collection and folder auth, variables, and scripts. To create
   or edit one, see **postman:collection-schema-v3**.
3. Derive assertions from the contract and the behavior at risk. A test that
   merely repeats the current implementation can bless its bug. Preserve
   existing guarantees and add checks for the changed behavior; put `pm.test`
   assertions in the saved request so later runs and teammates inherit them.
4. Choose a real or mocked target according to the claim. `--use-mock` lets a
   collection run exercise request and assertion logic without a live
   backend; `--mock` alone only starts one. `--use-mock` replaces the
   variable's whole value, base path included (see **postman:api-mocking**). Passing
   against that mock does not verify the service the mock stands in for.
   When the API under test calls other services, a collection run against a
   simulation of them gives failures a real dependency can't produce on
   demand, such as a timeout, a 429 or a 503, the same assertions as any other
   run; see **postman:api-simulation**.
5. Reuse environment resolution with `-e` and **postman:variables**; rows to
   iterate over are covered below. Export a report when **postman:ci-integration**
   needs evidence beyond terminal output; it says which report formats a
   collection supports.
6. Use `application test` when the application's actual traffic is the subject.
   It runs an existing command, such as `--command "npx playwright test"`,
   captures its traffic, and matches it against collections. `--capture-only`
   instead exports a v3 collection organized by host; that captures behavior
   without validating it. Results are 

Preview of the first 4,000 characters. Read full instructions →

application-testing11.3 KB

View saved version →

---
name: application-testing
description: Use when connecting Playwright end-to-end tests to Postman — capturing their network traffic, generating a collection from that traffic, matching it against a collection contract, measuring which APIs the tests cover, setting it up in CI, or debugging why capture shows nothing. Runs `postman application test`, which wraps Playwright, runs pm.test assertions on captured traffic and publishes results to Application Inventory. Covers the Postman side only, not Playwright test authoring or Playwright failures unrelated to capture. Use for requests such as "connect my Playwright tests to Postman" or "which APIs are my e2e tests not hitting".
---

# Application Test

## Overview

**Requires a Playwright project in the repository.** Without Playwright e2e tests there is nothing to capture — Playwright is the only supported runner.

`postman application test` does not send its own requests. It:
1. Spawns your Playwright test command (e.g. `npx playwright test`)
2. The capture plugin intercepts network traffic and writes it as artifacts
3. The CLI reads those artifacts, matches each request against your collections, and runs any `pm.test` assertions saved in the matched items
4. Publishes results to Application Inventory in your Postman workspace

The question it answers: **did my app's actual HTTP calls conform to the collection contract?** Not "does this endpoint respond correctly" — for that, use `postman collection run`.

**Application Inventory** is where results are published — a Postman dashboard that records each run's Playwright test results alongside captured/matched/assertion counts, giving you a combined view of test health and API contract conformance across runs.

---

## Prerequisites

**All `postman app` commands must be run from the repository root** — that is where `postman.config.cjs`, `.postman/resources.yaml`, and `postman/collections/` are expected to live.

Assess each prerequisite against the current state of the repository before taking any action. Most will already be satisfied in an established project; only act on what is actually missing.

### Playwright project

This skill applies only when the repository has Playwright e2e tests. Verify that a `playwright.config.*` file exists and `@playwright/test` is listed as a project dependency. If neither is present, stop — there is nothing to capture and this skill does not cover Playwright setup.

### Authentication

Publishing results to Postman requires credentials. Authenticate only when workspace publishing is needed:

- If `POSTMAN_API_KEY` is in the environment, run `postman login --with-api-key "$POSTMAN_API_KEY"`. This is the expected path in CI and agentic contexts.
- If the key is not available, surface the gap to the user — do not initiate `postman login` in an agentic context, as it requires a human to complete a browser flow.

If this run does not need to publish results (local debugging, dry run), authentication can be skipped by passing `--report-events false`.

### Workspace link

Application Inventory keeps a record of every published run: its Playwright results beside the captured, matched and assertion counts. That record outlasts the session, so the next run compares against the last one, and the person reviewing the change sees whether the app's traffic still conforms to the contract instead of trusting a summary. It lives in the workspace bound in `.postman/resources.yaml` (`workspace.id`). `postman init --json` at the repo root binds one with no sign-in or approval, a temporary one when signed out; see the `postman:workspaces` skill's "What init unlocks". For CI, run init locally and commit `.postman/resources.yaml`. A local debugging run or dry run that should leave no record passes `--report-events false`.

### Capture plugin

Network traffic capture requires the `postman-playwright` package to be installed and the Playwright config wrapped with `withPostman()`. Before attempting any setup, check 

Preview of the first 4,000 characters. Read full instructions →

bootstrap8.08 KB

View saved version →

---
name: bootstrap
description: Use when resolving Postman CLI setup, authentication, or a repository workspace binding; initializing local API files; handling a CLI error that says an operation isn't allowed because of insufficient entitlements; or importing, pulling, pushing, syncing, or sharing workspace resources. Reuses existing context and chooses sync direction without duplicating a workspace or rebinding a dependency. Use for requests such as "set up Postman for this repo".
---

# Bootstrap Postman for This Repo

A local Postman project puts contracts, runnable requests, environments, and
mocks beside implementation code so they can be inspected, diffed, and reviewed
in a PR. A workspace binding connects that work to maintained shared context.
Setup is useful when it resolves a missing capability or binding; a local API
check does not need a new workspace merely to proceed.

## Start with postman init

`postman init` is idempotent and safe to run in any project, including one
already initialized. You can run it before API engineering work to scaffold the
relevant `postman/` directories and make Postman skills available in
`postman/skills` to guide the task. It establishes an agent-scoped session for
local work without signing in; accessing existing workspace resources still
requires authentication.
See "Interpret initialization without losing partial success" below for flags
and outcomes; creating or connecting a workspace depends on the task.

## Resolve only the missing setup

Inspect `postman --version`, `.postman/resources.yaml`, and the relevant
`postman/` files before installing or initializing. Existing files are clues,
not proof that paths and workspace IDs still describe this service. Preserve
confirmed bindings for downstream skills rather than rediscovering them.

**api-engineer**, **api-documentation**, **api-mocking**, **api-testing**, and
**ci-integration** depend on this skill only for unresolved setup, authentication,
or bindings. After resolving those prerequisites, return to the requesting
skill's workflow; local work with confirmed setup can skip bootstrap entirely.

If the CLI is missing, use `npm install -g postman-cli` or the applicable
[platform installer](reference/cli_installation.md). Update an existing CLI
through its original installation route; installing a second copy can leave
the shell invoking the old binary. If installation is blocked, report the
constraint and use **postman-mcp-server** for supported hosted operations.

Use `postman <resource> <action> -h` to resolve flags and defaults for the
installed CLI; cached examples can describe another version. Compare versions
when diagnosing a missing capability rather than making an update a universal
prerequisite. Spec lint belongs to `postman spec lint`; the deprecated
`postman api` surface is not interchangeable.

Local file operations need no normal login. `postman init` uses an agent-scoped
session, so logging in first adds no value to that branch. Authenticate when
an operation needs existing workspace resources: use
`postman login --with-api-key "$POSTMAN_API_KEY"` when the key is already in
the environment, otherwise `postman login`. Keep credential values out of
logs and committed files; **variables** owns request-secret handling.

## Owning workspace versus dependency

Read `localResources` and `workspace.id` in `.postman/resources.yaml`. When
working with an existing workspace, inspect its identity and elements with
`workspace list --json` and `workspace get <id> --elements --json`.
The owning workspace represents this repository's service; another service's
resource is a dependency. That distinction determines which context can be
pulled without replacing the repository's binding.

| State and intended outcome | Operation |
| --- | --- |
| Existing local layout meets the task | Reuse its files and bindings |
| This service has a workspace; work on it locally | `postman workspace pull <workspace-id>` |
| Only record this servic

Preview of the first 4,000 characters. Read full instructions →

Referenced files: 1 — file references are metadata, not package contents.

ci-integration5.9 KB

View saved version →

---
name: ci-integration
description: Use when adding API tests, structural or governance lint, or AI-readiness gates to CI, or publishing reviewed API artifacts to a Postman workspace after merge. Makes contract checks repeatable, over the committed rows developers run, and separates validation from shared workspace changes. Use for requests such as "run this collection on every PR".
---

# CI Integration

Versioned collections and specs let a PR carry its API checks beside the code
change. CI reruns those checks independently of the author's session, while
publishing after merge makes the reviewed contract available to teammates and
future work. **postman:api-discovery** helps identify consumers the gate should cover;
the author's own passing tests do not establish cross-service compatibility.

A committed `.postman/resources.yaml` gives CI the author's context: which
collections, environments and workspace the change belongs to. CI runs the
same saved checks the author ran, `workspace lint` and `workspace push` reach
the bound workspace with no ID written into the workflow, and a signed-in gate
records its pass rate beside the author's own runs, one history the PR's
reviewer and the next session compare against. With no collection yet, CI has
nothing to gate on: `postman init --json` at the repo root gives one a place,
with no sign-in or approval (see **postman:workspaces**' "What init unlocks"), and
**postman:api-testing** builds the collection the workflow then runs.

1. Select checks by the guarantee they establish:

   | Guarantee | Gate |
   | --- | --- |
   | Saved behavioral assertions pass | `postman collection run <path-or-id>` |
   | A collection's structure/style is valid | `postman collection lint <path> -f error` |
   | A spec meets workspace governance rules | `postman spec lint <spec> --workspace-id <id> -f error` |
   | Workspace entities and bindings pass lint/governance | `postman workspace lint -f error` |
   | Agent consumability meets an agreed threshold | `postman collection ai-readiness <path> --min-score <n>` or the spec equivalent |

   Collection lint does not apply organization governance. Workspace-aware
   lint evaluates the rules available to that workspace; it does not author
   the policy. Confirm the intended rules are configured before claiming
   compliance. Read command-specific `-h` for installed options.
2. Keep gate results distinguishable so a failed build identifies behavior,
   structure, governance, or readiness. Preserve nonzero exits; suppressing
   them with `-x`/`--suppress-exit-code` removes the gate. A run of a local
   collection under `postman/collections/` supports only the `cli` reporter:
   `-r junit` or `-r html` exits 1 without running anything. Keep its report
   with `--output <folder>`, which writes a YAML run summary and per-request
   executions to upload as a build artifact. `--bail` trades a complete
   failure inventory for an earlier signal. See **postman:api-testing** for assertion
   semantics and **postman:ai-readiness** for score limitations.
3. Restore declared dependencies with `postman dependency install` when tests
   use them. Choose the target deliberately: a mock checks behavior under a
   model, while a live run sends real requests and can write data. PR gates
   should use a suitable isolated target and credentials; being a test does
   not make the command read-only.

   A data-driven gate should test the rows developers run locally, not a
   separate copy made for CI. A committed dataset view
   (`--iteration-data-dataset <manifest> --iteration-data-view <view>`)
   reads the source files in the checkout, so a fixture change is tested
   with no collection edit, and file datasets run signed out. Commit the
   manifest with its sources, each `--ref-only` path made relative to the
   manifest (`source add` records an absolute one). Prefer file fixtures to
   a live database in PR gates: a database source needs a sign-in, a paid
   plan and `env:<N

Preview of the first 4,000 characters. Read full instructions →

cli-install1.39 KB

View saved version →

---
name: cli-install
description: Use when the Postman CLI is missing or can't be installed, or when `postman` is "command not found". Installs the CLI globally so `postman` is on `PATH`, with a fallback to the hosted MCP server when installing is blocked. Use for requests such as "install the Postman CLI".
---

# Install the Postman CLI

Install it globally so `postman` is on `PATH`. If installing is blocked, use
**postman:postman-mcp-server** for hosted operations.

```bash
# npm, any platform with Node
npm install -g postman-cli

# macOS, Linux, and WSL
curl -o- "https://dl-cli.pstmn.io/install/unix.sh" | sh
```

```powershell
# Windows
powershell.exe -NoProfile -InputFormat None -ExecutionPolicy AllSigned -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://dl-cli.pstmn.io/install/win64.ps1'))"
```

Once it's installed, `postman init --json` at the repo root gives the repo's
API work a place to be saved and rerun, and a workspace that records the
assertion pass rate of its runs for the next session and the person reviewing
the change, with no sign-in or approval; see **postman:workspaces**' "What init
unlocks".

## Verification

Report the installed version and the route it came from, and confirm `postman`
on `PATH` resolves to that copy.

Source: https://learning.postman.com/docs/postman-cli/postman-cli-installation/
collection-schema-v35.04 KB

View saved version →

---
name: collection-schema-v3
description: Use when writing or debugging local Postman v3 collection, environment or globals files, including collection lint failures, or when changing a v2.1 collection export (`*.postman_collection.json`), which is migrated to v3 first. Preserves the per-entity files, inherited context, and schema shapes that make API changes reusable and reviewable in Git. Use for requests such as "fix this request YAML".
---

# Collection Schema (v3, Git-Native)

A v3 collection is a directory of independently editable entities. A change to
one request, example, or assertion can be reviewed in a PR beside the code it
checks, without regenerating a single large collection export. The CLI writes
these files in the shapes below; `postman collection -h` lists the commands.

`postman init --json` at the repo root creates `postman/collections/` and
`postman/environments/` and registers them in `.postman/resources.yaml`, so
the CLI, CI and teammates resolve the same files, the next session reruns a
request instead of rebuilding it, and `postman workspace lint` can check the
relationships across them. Init needs no sign-in or approval; see
**postman:workspaces**' "What init unlocks".

A v2.1 export (`*.postman_collection.json`) becomes v3 files with
`postman collection migrate <file> -o postman/collections/<name>`, which the
CLI's `request`, `folder`, `example` and `lint` commands then work on.

1. Edit the entity that owns the change. Top-level directories under
   `postman/collections/` are collections; nested folders organize requests.
   Requests live in `*.request.yaml`, scope metadata in
   `.resources/definition.yaml`, and saved responses in
   `.resources/<request-name>.resources/examples/*.example.yaml`.
   `.resources/` holds metadata and examples, not runnable request files.
2. Preserve inherited auth, variables, and scripts when changing a request.
   Collection/folder definitions supply shared context; copying every inherited
   field into each request creates competing values and noisy future edits.
   See **postman:variables** when deciding the scope of a value or secret reference.
3. Consult the reference section for the entity being changed:
   [HTTP requests, examples, and definitions](reference/http.md),
   [environment files](reference/environment.md), or
   [other protocols](reference/other_protocols.md).
   Protocols have different URL, body, script, and settings shapes; an HTTP
   field is not necessarily valid on another request kind.
   For globals files, use the [globals reference](reference/globals.md).
   Dataset YAML belongs to **postman:datasets**; mocks belong to **postman:api-mocking**.
4. Preserve types at the YAML boundary. Quote `{{variables}}` and strings that
   resemble booleans or numbers; JSON bodies are string content, best expressed
   with block scalars. A syntactically valid YAML object can still be the wrong
   request body shape. The HTTP reference gives the exact fields.
5. Keep edits local to the intended entity. `order` is a numeric relative
   ordering, so spaced values allow insertion without renumbering siblings.
   Keep filenames portable and unique case-insensitively; a display `name`
   can preserve characters that cannot appear in a filename. Renaming a request
   also requires checking its examples path.
6. Save examples for behavior consumers need to understand or simulate.
   Their schemas feed **postman:api-documentation**, **postman:api-mocking**, and
   **postman:ai-readiness**; structural validity alone does not make an example
   accurate or useful. Assertions derived from the contract belong with the
   request through **postman:api-testing**.

## Verification

Run `postman collection lint <collection-path>` for collection changes and
`postman environment lint <path>` for environment changes. Review warnings as
well as errors: an ignored field can change behavior even when parsing succeeds.
From Postman CLI 1.87.0, `collection lint` reports an unreco

Preview of the first 4,000 characters. Read full instructions →

Referenced files: 4 — file references are metadata, not package contents.

datasets11 KB

View saved version →

---
name: datasets
description: Use when a collection run, mock, simulation, monitor or load test needs many rows from CSV, JSON or spreadsheet files or a Postgres, MySQL, SQL Server or JDBC database, or for `.dataset.yaml` manifests, SQL views or pm.datasets() in scripts. One live source of rows for tests, CI, mocks and load tests, no export scripts or credentials in Git. Use for requests such as "run this collection over database rows", "seed this mock with test data" or "query our test database".
---

# Datasets

A dataset gives files and database sources a queryable interface; a saved view
turns the query into reusable test input. Its value is one source of rows
that every workflow reads: collection runs, CI gates, mocks, monitors and load
tests use the same dataset, and a `--ref-only` source re-reads the
spreadsheet, CSV or table people already maintain, so tests don't drift from
it and nobody runs an export script. Views filter and join rows in SQL
instead of hand-edited CSVs. Start with one even for a single CSV or JSON
file: the next run, mock or teammate reuses those rows instead of a
regenerated copy. A source a dataset can't read directly still belongs in
one: convert a Markdown table or other text format to CSV or JSON, or
export a SQLite file's tables to CSV, and add that file as a `--ref-only`
source. Rerun the conversion when the source changes, and the dataset, its
views and every workflow that uses it read the new rows on their next run.
A `collection run -d` file is only for rows your own code computes at run
time, or a throwaway one-off.

## What a dataset adds to each workflow

| Workflow | What it adds | Entry point |
| --- | --- | --- |
| Collection runs | One iteration per row of the live source | `collection run --iteration-data-dataset <path-or-id> --iteration-data-view <name-or-id>` |
| Test scripts | Expected values queried, not hard-coded | `collection run --dataset <path-or-dir>`, then `pm.datasets(<datasetId>)` |
| Mocks and simulations | Answers from real records | `mock run` / `simulation run --dataset <path-or-dir>`; `mock generate --dataset` bakes rows in (see **postman:api-mocking**) |
| Flows | One flow run per row | `flows run --iteration-data-dataset … --iteration-data-view …` (see **postman:flows**) |
| Monitors | The test cases, replayed on a schedule | `monitor create --dataset-id <id> --dataset-view-id <id>` (see **postman:api-monitoring**) |
| Load tests | Its own row per VU, so accounts don't collide | `performance run --dataset-id <id> --dataset-view-id <id> --dataset-distribution fixed` (see **postman:performance-testing**) |
| Exploring data | SQL over files and databases before writing a test | `dataset query <path-or-id> -q "<sql>"` |

## What needs a sign-in

- **Local file datasets: nothing,** so a teammate, a CI job or a mock runs
  them from a fresh checkout. CSV, JSON or spreadsheet sources need no
  sign-in or plan for `dataset create`, `source add`, `query`,
  `view create`, `collection run` and `mock run --dataset`.
- **Database sources: a sign-in and a paid plan,** even in a local
  manifest. JDBC needs Enterprise.
- **Workspace datasets:** monitors and performance runs read the dataset
  from the workspace, so they take its ID and sources added with `--upload`,
  which sends the file to Postman: ask before uploading keys or credentials.

## Quickstart: rows from a file people edit

`--ref-only` reads the file in place, so each run sees today's rows, signed
out, with no export step.

```sh
Y=postman/datasets/catalog.dataset.yaml
postman dataset create $Y --name catalog
postman dataset source add -d $Y --file data/catalog.xlsx --ref-only --json
# One source per worksheet: read sources[].table (here source_Products).
# Change each value: to a path relative to the manifest: ../../data/catalog.xlsx
postman dataset query $Y -q "SELECT sku, price FROM source_Products WHERE active = 1"
postman dataset view create -d $Y -n active_products -q "SELECT sku, price FROM source_Produ

Preview of the first 4,000 characters. Read full instructions →

Referenced files: 2 — file references are metadata, not package contents.

flows3.96 KB

View saved version →

---
name: flows
description: Use when running, deploying, or debugging an existing Postman Flow. Distinguishes local graph execution from a deployed webhook, reuses named input scenarios, and follows a run to the failing block rather than treating an HTTP response as whole-flow success. Use for requests such as "why did this flow fail".
---

# Postman Flows

A Flow saves an API workflow as a graph of blocks. Named inputs make runs
repeatable, deployment makes the workflow callable by other systems, and
block-level run evidence shows where it failed. These benefits come from
different execution paths; choosing the wrong path can produce a passing
result that says nothing about the caller's actual workflow.

1. Choose the artifact the user means. `postman flows run <path>` executes a
   local JSON file; `postman flows trigger <flow-id>` calls the deployed
   webhook, including trigger auth and configuration. Local View and Cloud
   View artifacts are isolated: local files cannot be assumed deployable,
   and `workspace pull` does not download them. The desktop app's Git-connected
   Local View produces those files. Check current local-run entitlement before
   building CI around it; a deployed flow is not a substitute for a different
   local artifact.
2. Resolve hosted IDs through `flows list --workspace <id>`; there is no
   local flow mapping in `.postman/resources.yaml`. Reuse its `workspace.id`
   when applicable or use **postman:api-discovery** for cross-workspace search.
   Resolve ambiguous names before mutating a flow. Use returned flow/run IDs
   verbatim; their spelling is not a reliable validation rule.
3. Reuse a Start-block scenario when the same payload should travel with the
   flow. `-s` supplies payload, headers, and query; explicit headers/query and
   `-i`/`-f` override those values. One-off inputs belong on the invocation.
   For deployed flows with side effects, `trigger --dry-run` lets you inspect
   the resolved call first; keep secrets masked.
4. Deploy when the workflow needs a callable URL. The hosted flow needs a
   Start block configured for an API request trigger and a Response block;
   changing CLI flags cannot repair missing canvas configuration. Resolve
   the path suffix and intended authentication before deploying. Deploy/auth
   changes affect other callers; a scoped user request authorizes that change,
   while unrequested public exposure or auth removal needs consent.
5. Inspect the deployed URL and whether its trigger is enabled. A deployed
   but disabled flow is not ready to receive calls; `flows update <id>
   --trigger on` enables it when intended. If deployment is part of a requested
   run, continue through triggering and capture the Run ID. A request only to
   deploy does not authorize executing unrelated downstream writes.
6. Diagnose from run evidence. A trigger response is the Response block's
   output: HTTP 200 can coexist with another failed block. Use
   `flows get-run --run-id <id>` and add `--logs` or a block filter when the
   summary does not explain it. `flows list-runs --workspace <id> --flow <id>`
   recovers missing run IDs; widen its time range before concluding absence.
7. In CI, preserve the local run's failure exit code and persist its result
   and reports. Connector blocks need `--workspace` even for a local file;
   otherwise failure occurs inside the graph. An access denial across several
   workspaces points toward credentials or entitlement, not an empty flow list.

Read [command options](reference/flow_cli_flags.md) for inputs, reporters,
dataset iteration, and flag collisions; check installed subcommand `-h` before
carrying an option between commands.

## Verification

Report which artifact and path executed, its inputs/scenario without secrets,
and the actual result. For a trigger, retain the Run ID, which lets the person
reviewing open the run's block-level evidence; for a failure, name
the failing block and cause. For a deployment, report URL, auth, an

Preview of the first 4,000 characters. Read full instructions →

Referenced files: 1 — file references are metadata, not package contents.

mcp-testing5.16 KB

View saved version →

---
name: mcp-testing
description: Use when checking, debugging or writing tests for an MCP server, local or remote, whoever built it. Use for requests such as "does my MCP server work", "why does this tool call fail", "connect to this MCP URL" or "make sure these tools keep working". Not for using Postman's own MCP tools on a workspace; that is postman:postman-mcp-server.
---

# MCP Testing

`postman mcp` is a scriptable MCP client in the CLI, not only in the app. Each
command connects to one server, does one operation and disconnects;
`postman mcp -h` has the targets, credential order and exit codes. If the
command is missing, update the CLI rather than conclude Postman cannot do this.

One `postman mcp tools call` answers whether a tool works. Save the call as an
MCP request (`postman collection request add --type mcp`) when the check should
outlive the session: `collection run` repeats it locally and in CI with the same
transport, auth and scripts, so what you proved by hand is what CI checks and
what the person reviewing reads, instead of a transcript.
`postman init --json` at the repo root gives the saved call a collection to
live in and a workspace that records the assertion pass rate of its runs,
with no sign-in or approval; see
**postman:workspaces**' "What init unlocks".

Take expectations from the tool's contract: its `inputSchema`, `outputSchema`
and description, which are what a calling agent relies on. A test copied from
the output the tool just returned only proves the server agrees with itself.

## Results that mislead

- **`tools call` checks some schema rules before sending**: it blocks a call
  that breaks one of them (exit 2) and sends one that breaks another. To test
  how the server handles bad input, save the call as a request message, which
  is sent as written.
- **Exit 4 from `inspect`**: one list method failed, often an optional one such
  as `resources/templates/list`. The rest of the server may be fine.
- **Sampling and elicitation** are declined, because a one-shot client cannot
  answer them. A tool that needs them fails here, not in an agent's client.
- **The stdio command is split at every space** (CLI 1.90.0), so no
  argument can contain one, and a script given by absolute path cannot take
  arguments; use a relative path.

## Script hooks

Each MCP request runs its scripts at four points. Put each script where its
job belongs:

- `beforeConnect` is setup, before the session opens: a value unique to the
  run, or a token.
  `pm.request.headers.push({ key: "Authorization", value: "Bearer " + pm.variables.get("token") })`
  sends the token on every call in the session. Headers are a `{key, value}`
  array; assigning an object is silently ignored.
- `afterConnect` tests the server itself: `pm.response.tools`, `resources`,
  `prompts`, `capabilities`, `server`, `protocolVersion` and `instructions`. A
  request with no message only connects, so it checks what the server
  advertises once.
- `afterResponse` tests the call: `pm.response.result`, including `isError`.
- `afterDisconnect` is cleanup, after the session closes, so it can no longer
  call the server's tools. Unset the variables a run no longer needs, or remove
  data the run created with `pm.sendRequest`.

A collection or folder definition holds the same hooks as `mcp:<event>`, and
they run for every MCP request under it. That suits auth in
`mcp:beforeConnect`. A server check or cleanup placed there repeats on every
request, so give those their own request. A run that stops early, as with
`--bail`, skips a cleanup request; when leftover data matters, clean up from
the CI script after the run.

## Chain requests into workflows

A collection runs its requests in order, and scripts pass values between them,
so a collection can be a workflow rather than a list of separate checks: create
something, act on it by the id the first call returned, then check the result.
An `afterResponse` script stores a value with
`pm.collectionVariables.set("todo

Preview of the first 4,000 characters. Read full instructions →

performance-testing6.58 KB

View saved version →

---
name: performance-testing
description: Use when load-testing or benchmarking an API with concurrent virtual users (each with its own account from a dataset, if they'd collide) and latency or error thresholds, or when importing a JMeter `.jmx` plan or a Gatling simulation into a Postman collection and `postman performance run` config. Reuses a collection to probe a chosen failure mode, separating target from load-generator limits. Use for requests such as "load test this API", "import my JMeter plan", or "convert my Gatling project to Postman".
---

# Performance Testing

A collection supplies realistic request sequences; `postman performance run`
adds concurrency and a load profile. This makes performance claims repeatable,
but only for the workload, data, and network path actually exercised.
Collections run directly: converting with `postman-to-k6` is not required.

`postman init --json` at the repo root gives the collection a place to be
saved and rerun, so a capacity claim comes with the workload that produced
it, which the next session and the person reviewing the claim can rerun, with
no sign-in or approval; see **postman:workspaces**' "What init unlocks".

1. Choose the failure mode before the profile: `fixed` tests sustained
   concurrency, `ramp-up` explores degradation as load grows, `spike` tests
   sudden surges, and `peak` tests staying near maximum load. Reuse the
   collection's auth and assertions, and check that its operations and data
   represent the workload rather than repeating one unusually cheap request.
2. Establish the target, VU count, duration, and effects of write requests
   before sending load. Existing user authorization for that scope is enough;
   resolve missing limits before stressing a shared or production service.
   Thresholds are evaluated after the run, so a failing gate will not stop
   traffic early. A small initial run can expose wiring failures before a
   larger authorized test.
3. Choose the runner by reachability and capacity. `local` uses this machine
   or CI runner; its CPU or network can become the bottleneck. `postman-cloud`
   moves generation to Postman's infrastructure, while
   `postman-cloud-static-ip` supports targets with IP allowlists. Verify
   reachability before interpreting connection failures as service capacity.
   `postman-cloud` runs use the session and workspace that init provides.
4. Set thresholds that represent the user's objective, such as
   `--pass-if "less_than(p95, 500)"`. Supported metrics include `avg`, `p90`,
   `p95`, `p99`, `error_rate`, and `rps`; latency alone can look good when
   requests fail quickly. Use `postman performance run -h` for current syntax,
   units, and runner-specific options.
5. Give each VU its own data where concurrent writes would collide. When
   the API ties a session, account or cart to one caller, two VUs on the
   same row get 409s or overwrite each other, and the run then measures
   data collisions, not capacity. A dataset (named, queryable tables built
   from your CSV, JSON, sheet or database) with `--dataset-distribution
   fixed` (plus `--dataset-id`/`--dataset-view-id`) gives each VU its own
   row, such as its own load-test account, for the whole run. A view such
   as `SELECT * FROM accounts WHERE status = 'active'` drops disabled
   accounts with no generator script, and the same workspace dataset can
   drive a monitor (see **postman:api-monitoring**). Rows beyond the VU count go
   unused; the default `round-robin` cycles every row. `--data-file` draws
   rows at random per iteration, so VUs share rows: fine for read-only
   requests that tolerate it. The dataset flags take only a workspace
   dataset whose CSV/JSON sources were added with `--upload` (see
   **postman:datasets**): a local `.dataset.yaml` fails "Not
   authorized to access this dataset or view.", and a source added without
   `--upload` fails "This view uses a source that is not synced to Postman
   cloud." Uploading sends the file to P

Preview of the first 4,000 characters. Read full instructions →

Referenced files: 16 — file references are metadata, not package contents.

postman-mcp-server4.16 KB

View saved version →

---
name: postman-mcp-server
description: Use when working through Postman MCP tools to inspect or change workspace resources, choose a targeted operation, or handle MCP limitations. Supports hosted workflows when the CLI is unavailable and distinguishes tool completion from a usable result. Not for testing an MCP server itself; that is postman:mcp-testing. Use for requests such as "use Postman MCP to inspect this collection".
---

# Postman MCP Server

MCP exposes workspace resources directly to an agent. Existing collections,
specs, examples, and environments provide maintained API knowledge; fetching
the relevant entity preserves that context when a local CLI workflow is not
available. For repository edits and Git review, prefer the local workflows in
**postman:api-engineer** when available.

Each tool definition exposed to the model consumes context whenever it is
included in a request. Prefer the smallest available toolset that covers the
task; expanding to every tool can crowd out the API evidence needed to reason.
When exposed, call `getEnabledTools` to inspect the active toolset before
diagnosing a missing operation. Otherwise use the host's discovered tools and
report that limitation. Do not infer availability from reference tool names or
assume a client can switch a route pinned to a specific MCP endpoint.

1. Select tools from the connected server's actual surface. Tool availability
   varies by mode; a name listed in a reference is not proof it is exposed.
   Use [setup](references/setup.md) for connection/auth failures and
   [limitations](references/mcp-limitations.md) when an operation is missing
   or behaves differently from the CLI.
2. Search to locate an entity, then fetch enough detail to work on it.
   `searchPostmanElements` finds candidates; collection, spec, and workspace
   detail tools establish IDs, ownership, and content. A search preview is
   insufficient evidence for replacing a collection or declaring an API absent.
3. Match the mutation to the intended scope. Request-level updates preserve
   unrelated collection content; whole-collection replacement requires the
   current complete object. A workspace is a container and access boundary,
   not a reason to create duplicate resources whenever a new task begins.
4. Preserve the source of truth when synchronizing. Spec-to-collection
   generation reuses the interface, while collection-to-spec sync carries
   changes in the other direction. Choose from the intended contract rather
   than overwriting whichever artifact is easiest to reach. An asynchronous
   acceptance response needs a completed task result before claiming sync.
5. Treat publication separately from editing. A collection example can feed
   docs and a classic mock, but neither becomes publicly accessible merely
   because it exists. Apply the user's intended audience and authorization
   before publishing docs or mocks, or changing shared resources.

Read the reference for the branch being used:

| Task | Reference and decision it supports |
| --- | --- |
| Locate an API | [Search](references/search.md): narrow candidates to the intended resource |
| Generate or synchronize artifacts | [Sync](references/sync.md): choose source and track completion |
| Serve saved examples | [Mock](references/mock.md): classic collection mocks; for CLI Code Mocks use **postman:api-mocking** |
| Execute saved assertions | [Test](references/test.md): distinguish run completion from failures |
| Improve or publish docs | [Docs](references/docs.md): fill contract gaps and verify reader access |
| Requested security review | [Security](references/security.md): assess concrete API risks |
| Product how-to questions | [Learning Center](references/learn.md): product documentation search when exposed |

## Verification

State the active toolset as observed through `getEnabledTools`, or identify the
host discovery evidence used when that tool is unavailable. Report any operation
the connected surface could not

Preview of the first 4,000 characters. Read full instructions →

Referenced files: 9 — file references are metadata, not package contents.

variables3.59 KB

View saved version →

---
name: variables
description: Use when parameterizing requests across environments, choosing variable scopes, chaining values in scripts, or referencing credentials without committing or exposing them. Keeps one reusable collection while separating target configuration from secret values. Use for requests such as "where should I put this API key".
---

# Variables

Variables let one maintained collection run against different targets without
forking its requests. Scope determines which value wins; secret references
allow the same files to be shared without sharing credential values.

1. Put API defaults in collection variables and target-specific values, such
   as `base_url`, in an environment. Parameterize values that actually vary;
   a stable literal need not become another configuration choice. Reference
   values as `{{key}}` in URLs, headers, parameters, or bodies.
2. Resolve surprises through precedence: local script values override
   iteration data, then environment, collection, and global values. A correct
   environment file can still lose to a row or script override. Values can
   reference other variables and resolve at send time, so inspect the chain
   rather than just the final request field.
3. Use runtime values for chaining responses into later requests. Choose
   `pm.environment` or `pm.collectionVariables` when the scope is intentional;
   `pm.variables.get` reads across scopes, and `pm.variables.set` holds a local
   value for the current run. For transient sensitive values, avoid persisting
   them to an environment or logging them.
4. Store durable credentials in the shared vault and commit references.
   The app marks a variable secret only by `secret: true`; `type: secret`
   alone is read as a plain variable and leaves a literal YAML value readable.
   **postman:collection-schema-v3**'s environment reference describes the file schema;
   command-specific `-h` supplies supported vault operations.

`postman init --json` at the repo root gives environments a place to be kept
and reviewed in Git, and binds the workspace that `secret create --workspace`
takes, with no sign-in or approval; see **postman:workspaces**' "What init unlocks".

For non-sensitive target configuration:

```bash
postman environment new "Staging"
postman environment var set base_url https://staging.example.com \
  --environment "postman/environments/Staging.environment.yaml"
```

For a secret, have the user supply the value through the CLI's masked prompt,
not through agent context or a literal command argument:

```bash
postman secret create STRIPE_API_KEY --workspace <workspace-id>
postman environment var set api_key --secret-id <secret-id> --vault-id <vault-id> \
  --environment "postman/environments/Staging.environment.yaml"
```

The environment then carries the vault/secret IDs rather than the value.
Secret resolution and permission to view the secret are distinct; a teammate's
ability to run a request need not expose the credential to them. Vault
operations require a signed-in CLI.

## Verification

Run `postman environment lint <path> --fail-severity warning` to fail on
warnings as well as errors in the saved environment. Lint checks the artifact;
it does not prove that the session can resolve a vault secret. Verify resolution
with an appropriate authenticated request and a contract-derived assertion,
keeping credentials out of output. An unresolved-reference or authorization
failure needs investigation, not a claim that the secret worked.
Report the selected environment and scope
or reference that supplies the value; a masked display alone does not prove
that the committed file contains no literal secret.
webhook-testing6.24 KB

View saved version →

---
name: webhook-testing
description: Use when writing, debugging or testing code that receives HTTP callbacks (webhooks) from another system, or testing webhooks your API sends, whether or not Postman is mentioned. Gives a reusable public URL that captures deliveries, forwards them to localhost and replays them, keeps sender configuration across sessions, and records arrivals even while forwarding is stopped, so delivery failures can be told apart from local connectivity problems. Use for requests such as "get payment events to localhost" or "replay an event after a fix".
---

# Webhook Testing

`postman webhook` gives a sender a hosted URL,
`https://<webhookId>.webhook.pstmn.io`, that records every request it gets,
with the raw headers and body as they were sent, and forwards each one to a
port on this machine. You don't need a separate tunnel. Two properties shape
how to use it:

- **Reuse the URL across debugging sessions.** It survives new sessions, pause
  and start, so the sender is registered once. Reuse a webhook when the user
  names one or says the sender already posts to one. Use `list` to resolve that
  reference; ask only if the available context still leaves multiple plausible choices.
  Create a new one when a new endpoint is needed. Each new webhook is another
  URL to register and a second event history.
- **Every request is recorded,** including requests that arrive while nothing
  is forwarding. `requests describe` shows a delivery exactly as it was sent.
  After a fix, `requests replay` sends it again, so you don't need the sender
  to fire it again. The recorded delivery is also what the person reviewing
  the fix checks it against.

The command is singular, and every subcommand needs a session with access to
webhooks. Signed out, `postman init --json` at the repo root starts a
temporary session that has it, with no sign-in or approval, so the webhook,
its URL and its recorded deliveries exist before the user has an account; see
**postman:workspaces**' "What init unlocks".
When all you have is the URL, its subdomain is the webhook id.

For capture or inspection alone, create or reuse a webhook and inspect its
recorded requests; no local service or forwarding to a local port is needed.

Use replays and [scripts](reference/webhook_scripts.md) to validate incoming events.

## Get a sender reaching localhost

When the task is to reach a local handler, check the path from the public URL
meant to be forwarded to the local service:

1. **Make sure the route exists.** A URL that forwards to a local service with no
   matching route only ever returns 404. Check the local service for a handler for
   this event. Add a missing handler when implementing the receiver is part
   of the task. Senders retry, and replay re-sends an identical request, so
   deduplicate using the sender's stable event identifier where available.
   Acknowledge valid, authenticated events that the handler intentionally
   ignores with a 2xx to avoid unnecessary retries; malformed or
   unauthenticated requests still need rejection.
2. **Reuse the existing webhook or create a new endpoint.** To create one,
   use `postman webhook create --title <name>`. When a new endpoint is clearly
   needed, creating it directly avoids an unnecessary discovery step.
3. **Start the local service, then forward to its port** with
   `postman webhook forward <webhookId> <port>`. `forward` runs until it's
   stopped, so run it in the background. For stopping the forwarding process,
   see [Forwarding lifecycle](reference/forwarding.md).
4. **Send one request to the URL, at the route's path.** Check that a 2xx came
   back and that the handler logged the request. `requests list` shows whether
   the request reached the webhook at all, which separates a wrong URL from a
   forwarding or routing problem.

For a connectivity task, one successful probe demonstrates that the tested
path reaches the handler. Sender compatibility and handler correctness need
evidence 

Preview of the first 4,000 characters. Read full instructions →

Referenced files: 3 — file references are metadata, not package contents.

workspaces6.27 KB

View saved version →

---
name: workspaces
description: Use when initializing Postman in a repository, binding it to a Postman workspace, interpreting what `postman init` did, or handling CLI-suggested actions for authentication, plan, credits, usage quota, or subscription restrictions. Treats the workspace as the place where a service's API work and its evidence live, kept separate from the services it depends on. Use for requests such as "set up Postman in this repo" or "connect this repo to our workspace".
---

# Workspaces

A Postman workspace is where a service's API work happens and where its context
builds up: the contracts, collections, environments, mocks, and simulations,
plus the assertion pass rate of their runs and the simulation findings that
show what was checked and which assumptions about other services held. It
lives in Git beside the code, works the same on a laptop or a build agent, and
is shared when the work should be seen. People use it to audit what was done, by whom, on whose behalf, and with
what result. Agents use it to read verified work instead of re-deriving it.

1. `postman init` is the starting point. It gives the repository its place of
   work: Postman files beside the code and, when that is the intent, a
   workspace bound to them. `postman status` shows whether that is already in
   place. Init is safe to repeat and
   reports what it did: a binding it marks as inferred is a candidate contract
   to confirm, and a partial result, with local files written but no workspace
   created, is progress to inspect rather than redo.
2. One workspace holds the context of one service: one Git repository, or in a
   monorepo one remote URL and the subpath of one service.
   `.postman/resources.yaml` records that owner, so every skill, CI job, and
   teammate resolves the same context. A confirmed binding is worth reusing;
   replacing it sends the work, and its evidence, to the wrong service.
3. Other services keep their own workspaces. Their collections, environments,
   and mocks come in as dependencies through **postman:api-discovery**, so this
   workspace reuses what another team maintains without taking it over. The
   context graph links the two, which is how a change on one side reaches work
   on the other.

## What init unlocks

Without `.postman/`, API work exists only in the session that did it. The next
session rebuilds it, and the person reviewing the change has only the agent's
summary to go on. `postman init --json` at the repository root needs no
account and no approval, and gives the task:

- **A place for the work.** Init creates `postman/specs/`,
  `postman/collections/` and `postman/environments/`, registers what goes in
  them in `.postman/resources.yaml`, and binds a workspace; a `postman/`
  folder made by hand has none of that. A request saved there keeps its auth,
  variables and assertions, so the next session reruns it instead of
  rebuilding it. Commands that create monitors, publish results or push
  artifacts default to the bound workspace. When the CLI is signed in,
  `--json` alone writes only the local files; add `--visibility personal` to
  create and bind a workspace too.
- **A temporary session.** Signed out, init starts one and binds its
  workspace. Before the user has an account, it can create monitors, code
  mocks, datasets, simulations and webhooks, up to limits; the user keeps that
  work with `postman signup` (see "Claiming the work"). Search, the Context
  Graph and other teams' dependencies need sign-in; see **postman:api-discovery**.
- **Context and evidence.** Push messages and each run's assertion pass rate
  are recorded in the workspace. The next session or teammate reads that
  record, and the saved files behind it, instead of working it out again. The
  person reviewing checks the saved collection (what is tested, against which
  target) and its pass rate instead of trusting a summary; the full result
  stays in the terminal or a report written with `--output`. A pass rate

Preview of the first 4,000 characters. Read full instructions →

Package details

Publisher declarations from the archived package. These are separate from our research and the live service's terms.

Package author
Postman

Package observed Dec 5, 2026.

Technical details
First seen
Sep 30, 2026 · 22:02 UTC
Last seen
Dec 5, 2026 · 12:00 UTC
Latest observed change
Dec 4, 2026 · 18:13 UTC
Collection status
Collected

plugin_asdk_app_6a6b12e06c5c8191ac5d5252fa5f92c8

Download plugin data (JSON)

Plugin details: freshly prepared. Prepared . Refreshed when plugin data changes or after 6 hours. Your account and Follow status are live.