Skip to content
Skill

API testing

Runs real or mocked API tests with saved Postman requests and data-driven cases

API testing is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
49
Last commit
License
Apache-2.0
Listing updated

Similar skills

About API testing

This skill guides an agent through choosing how to exercise an HTTP endpoint: a single ad hoc request, a run of a saved collection request, a collection run used as regression checks, or a check of whether a running application's traffic matches its API contract. It pushes the agent to reuse matching requests saved under postman/collections so inherited auth, variables and scripts carry over, and to derive assertions from the intended guarantee rather than from current behavior.

The workflow covers targeting. A live backend or a mock can be used depending on the claim being tested, and the skill warns that a pass against a mock does not verify the real service. Reports should state the target, the behavior tested, assertion counts and the exit code, which reflects failed assertions rather than HTTP status alone. Application testing can wrap an existing test command, capture its traffic and match it against collections, or export a collection without validating it.

The skill also explains running one collection iteration per row of a dataset built from a CSV, sheet or database, so the same cases run locally and in CI. It expects the Postman CLI, and a signed-in session for workspace resources, though a bare URL or local collection needs no workspace binding.

When your agent uses it

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".

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the postman plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add postmanlabs/postman-plugin
/plugin install postman@postman

Or copy only this skill to ~/.claude/skills/api-testing:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-testing &&
cp -R "$tmp/agent-plugin/skills/api-testing" ~/.claude/skills/api-testing &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/api-testing inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/api-testing to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/api-testing &&
cp -R "$tmp/agent-plugin/skills/api-testing" ~/.agents/skills/api-testing &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/api-testing inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/api-testing to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/api-testing &&
cp -R "$tmp/agent-plugin/skills/api-testing" ~/.cursor/skills/api-testing &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/api-testing inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/postmanlabs/postman-plugin.git --path agent-plugin/skills/api-testing

Or copy the folder to ~/.gemini/skills/api-testing yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/api-testing:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-testing &&
cp -R "$tmp/agent-plugin/skills/api-testing" ~/.copilot/skills/api-testing &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/api-testing inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git

Then copy postman-plugin/agent-plugin/skills/api-testing into your agent's skills folder as api-testing. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Execution mode selection
Guides the agent to pick a single request, a saved collection run, or application traffic testing based on the evidence needed.
Saved request reuse
Prefers existing requests in the collections folder so auth, variables and scripts are inherited.
Contract-based assertions
Derives checks from the intended guarantee and warns against tests that just repeat current behavior.
Live versus mocked targets
Explains when a mock is acceptable and what a mocked pass does not prove.
Dataset-driven test cases
Runs one iteration per dataset row so edge cases from a spreadsheet or database are covered.
Application traffic matching
Captures traffic from an existing test command and checks it against collections.
Exit code reporting
Reports target, tested behavior, assertion counts and exit code as verification output.

Good for

  • Test this endpoint with a real HTTP request
  • Run my saved Postman collection as regression checks
  • Run a coupon endpoint over every row of a QA test plan sheet
  • Check whether my app's API calls match the contract
  • Validate a request against a mock server before the backend exists

API testing FAQ

What does the skill need to run?

The Postman CLI is required. Workspace resources need a signed-in CLI, while a bare URL or local collection does not need a workspace binding.

Does a passing mocked test prove the real service works?

No. The skill states that passing against a mock does not verify the service the mock stands in for, so mocked runs leave real behavior unverified.

Why can a test fail even when the HTTP response is 200?

The exit code reflects failed assertions, not HTTP status alone, so a 200 response can still fail a test.

Can test cases come from a spreadsheet?

Yes. A collection can run over a dataset view of a CSV, sheet or database, with one iteration per row and columns available as variables.

How do I install API testing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/api-testing to use it in all your projects, or to .claude/skills/api-testing in one project. Or install the postman plugin, which includes it: /plugin marketplace add postmanlabs/postman-plugin, then /plugin install postman@postman.

Does API testing run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use API testing?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to API testing?

The closest alternatives to API testing are API engineer, API mocking, Application testing, Performance testing and API monitoring.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from postmanlabs/postman-plugin

  1. Guides an agent through wiring a new vendor plugin route into the Postman plugin repo

    • Open source
    • 49 GitHub stars
    • Developer tools
  2. Walks an agent through cutting and publishing npm releases of the Postman plugin installer

    • Open source
    • 49 GitHub stars
    • Developer tools
  3. Scores how well an API contract lets AI agents discover, call and recover from errors

    • Open source
    • 49 GitHub stars
    • Developer tools
  4. Finds existing API contracts, mocks and consumers so agents reuse them instead of guessing

    • Open source
    • 49 GitHub stars
    • Developer tools
  5. Keeps API contracts, examples and published docs accurate for callers, tests and mocks

    • Open source
    • 49 GitHub stars
    • Developer tools
  6. Guides an agent through multi-step HTTP API work using Postman skills and shared contracts

    • Open source
    • 49 GitHub stars
    • Legal and government