# API discovery

> API discovery is an open-source agent skill for developer tools. Finds existing API contracts, mocks and consumers so agents reuse them instead of guessing. 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-discovery
- **Repository:** https://github.com/postmanlabs/postman-plugin
- **GitHub stars:** 49
- **License:** Apache-2.0
- **Skill name:** api-discovery
- **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 locating an API or its owner before writing integration code. It separates three sources: Orbit search for public provider endpoints and integration steps, Postman resource search for collections, specs, mocks and workspaces, and the Postman Context Graph for consumers, ownership and likely change impact across services. The agent is told to check sign-in status before using Postman-backed commands and to report any sources it had to skip.

The workflow covers choosing the right source for the question, verifying graph leads against definitions, source code or telemetry, and handling dependencies. Discovered collections, environments and mocks are declared in a resources file and downloaded into a dependencies folder, with install and update commands for CI and refreshes. The skill also advises against rebinding the repository's workspace and warns that editing downloaded dependencies is overwritten on update.

The skill expects the Postman CLI, signed-in credentials for Postman and Context Graph queries, and an Orbit request for public APIs. Provider credentials are not supplied by Orbit and must be obtained separately. It points to companion skills for running mocks against a real service and keeping contract checks in pull requests.

## When your agent uses it

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

## 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-discovery)
- [License: Apache-2.0](https://github.com/postmanlabs/postman-plugin/tree/HEAD/agent-plugin/skills/api-discovery)

## Features

- **Public API discovery:** Searches Orbit for task-relevant provider endpoints and returns auth, base URL and integration steps.
- **Postman resource search:** Finds collections, requests, specs, mocks, datasets and workspaces by type, owner and scope.
- **Consumer and impact analysis:** Queries the Context Graph to trace which services call an endpoint or schema and what a change could affect.
- **Dependency management:** Declares discovered resources in a resources file and downloads them, with install and update commands.
- **Verification reporting:** Requires noting which source answered, the resource IDs found, and any coverage gaps.

## Good for

- Find a public API for a task and get its integration steps
- Find the Postman collection or mock owned by a given team
- Ask who consumes a specific endpoint before changing it
- Download a shared mock as a project dependency for tests
- Check which downstream services a schema change could break

## 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-discovery`:

```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-discovery &&
cp -R "$tmp/agent-plugin/skills/api-discovery" ~/.claude/skills/api-discovery &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/api-discovery` 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-discovery &&
cp -R "$tmp/agent-plugin/skills/api-discovery" ~/.agents/skills/api-discovery &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/api-discovery` 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-discovery &&
cp -R "$tmp/agent-plugin/skills/api-discovery" ~/.cursor/skills/api-discovery &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/api-discovery` 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-discovery
```

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

### VS Code

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

```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-discovery &&
cp -R "$tmp/agent-plugin/skills/api-discovery" ~/.copilot/skills/api-discovery &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/api-discovery` 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-discovery` into your agent's skills folder as `api-discovery`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does API discovery need before running Postman searches?

A signed-in Postman CLI. The skill says to check postman status first and to sign in if it reports signed out; if signing in isn't possible, those commands are skipped.

### Where are downloaded dependencies stored?

Declarations live in .postman/resources.yaml and downloads go into postman/.dependencies/. Updating dependencies overwrites downloaded edits, so copy a dependency into owned files to customize it.

### Does Orbit provide API keys for providers?

No. The skill states that Orbit access does not supply a provider's credentials.

### Is a Context Graph result proof of impact?

Not on its own. The skill says to verify consequential leads against definitions, source or telemetry, since coverage depends on connected sources.

### How do I install API discovery in Claude Code?

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

### Does API discovery 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 discovery?

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 discovery?

The closest alternatives to API discovery are API mocking, API engineer, API testing, API documentation and Workspaces.

## Where this comes from

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

## Alternatives

- [API mocking](https://ai-powered.com/skills/api-mocking): API mocking is an open-source agent skill for developer tools.
- [API engineer](https://ai-powered.com/skills/api-engineer): API engineer is an open-source agent skill for legal and government.
- [API testing](https://ai-powered.com/skills/api-testing): API testing is an open-source agent skill for developer tools.
- [API documentation](https://ai-powered.com/skills/api-documentation-postmanlabs): API documentation is an open-source agent skill for developer tools.
- [Workspaces](https://ai-powered.com/skills/workspaces): Workspaces is an open-source agent skill for developer tools.
- [AI readiness](https://ai-powered.com/skills/ai-readiness-postmanlabs): AI readiness is an open-source agent skill for developer tools.
- [API simulation](https://ai-powered.com/skills/api-simulation): API simulation 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.

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