# API testing

> API testing is an open-source agent skill for developer tools. Runs real or mocked API tests with saved Postman requests and data-driven cases. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/postmanlabs/postman-plugin/tree/main/agent-plugin/skills/api-testing
- **Repository:** https://github.com/postmanlabs/postman-plugin
- **GitHub stars:** 49
- **License:** Apache-2.0
- **Skill name:** api-testing
- **Collection:** https://github.com/postmanlabs/postman-plugin
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/postmanlabs/postman-plugin/tree/HEAD/agent-plugin/skills/api-testing)
- [License: Apache-2.0](https://github.com/postmanlabs/postman-plugin/tree/HEAD/agent-plugin/skills/api-testing)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [API engineer](https://ai-powered.com/skills/api-engineer): API engineer is an open-source agent skill for legal and government.
- [API mocking](https://ai-powered.com/skills/api-mocking): API mocking is an open-source agent skill for developer tools.
- [Application testing](https://ai-powered.com/skills/application-testing): Application testing is an open-source agent skill for developer tools.
- [Performance testing](https://ai-powered.com/skills/performance-testing): Performance testing is an open-source agent skill for developer tools.
- [API monitoring](https://ai-powered.com/skills/api-monitoring): API monitoring is an open-source agent skill for developer tools.
- [API to testcase generator](https://ai-powered.com/skills/api-to-testcase-generator): API to testcase generator is an open-source agent skill for developer tools.
- [Postman test script generator](https://ai-powered.com/skills/postman-test-script-generator): Postman test script generator is an open-source agent skill for developer tools.
- [Ci integration](https://ai-powered.com/skills/ci-integration): Ci integration is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/api-testing
