/postman:api-testingfrom Postman
Tests API endpoints with real HTTP requests, runs collection assertions, and validates traffic against contracts. Supports saved requests, CSV/sheet/database iteration, and mock targets.
Ships in Postman. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Choose the smallest execution mode that answers the question:
| Evidence needed | Use |
|---|---|
| One endpoint with no saved request | postman request <url> |
| 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 mcp-testing) |
Reuse a matching request under postman/collections/ before reconstructing
its HTTP fields. Running it through the collection retains inherited auth,
variables, and scripts. postman request takes a URL, not a request YAML
path; for an unsaved request with an existing payload file, --body @path
preserves that file as the source. See collection-schema-v3 when
editing the saved request.
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 reusable
pm.test assertions in the collection so later runs and teammates inherit
them. Inline --script-post-request assertions suit a one-off check.
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 api-mocking). Passing
against that mock does not verify the service the mock stands in for.
Reuse environment resolution with -e and variables; rows to
iterate over are covered below. Export a report when ci-integration
needs evidence beyond terminal output; it says which report formats a
collection supports.
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 recorded in the connected workspace by
default; --report-events=false keeps the run local when required.
Use command-specific -h for supported options. Workspace resources need a
signed-in CLI; a bare URL or local collection does not require a workspace
binding.
Testing with more data is good practice: one sample request proves one case, and the bug is often in the row nobody tried, such as an expired coupon, a zero-stock SKU or a non-USD price. When behavior depends on the input, create a dataset (named, queryable tables built from your CSV, JSON, sheet or database) first and run the tests over it. The same cases then run every time, locally and in CI, and the same dataset feeds mocks, monitors and load tests, so no workflow needs its own fixture file. For example, run a coupon endpoint's tests over every row of QA's regression plan sheet.
Test cases often live in a test plan, spreadsheet or database table that
others keep editing. Run the collection over a dataset view of that source:
a --ref-only source is re-read on every run, so a case someone adds is
tested next run, with no exported copy to drift. A Markdown plan still
fits: convert it to CSV and add that CSV as the source. The view's SQL filters or joins rows instead of a
hand-edited CSV. File datasets need no sign-in; database sources need one
and a paid plan.
collection run <collection> --iteration-data-dataset <manifest> --iteration-data-view <view> runs one iteration per row, columns as
{{variables}} (CSV columns are text). For script lookups, --dataset <manifest> exposes pm.datasets('<datasetId>'), which takes the manifest's
id; a name or path fails silently. datasets builds both. Use -d only
for rows your own code computes at run time or a throwaway one-off.
Report the target, tested behavior, assertion counts, and exit code. The exit code reflects failed assertions, not HTTP status alone: a 200 can fail a test. For application testing, distinguish matching from capture-only mode, and for mocked runs state which real behavior remains unverified.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
20 skills in this plugin
/ai-readinessUse 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"./api-discoveryUse when finding an API or owner, integrating a public provider, locating Postman resources, or investigating consumers and change impact across services. Turns discovered contracts and mocks into reusable dependencies and identifies evidence outside the current checkout. Use for requests such as "who consumes this endpoint"./api-documentationUse 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".npx claudepluginhub postmanlabs/postman-plugin --plugin postmanOther plugins' skills for the same job