Api Documentation

by postmanlabs67cff8f385d8No licenseListed Oct 8, 2026Updated Oct 8, 2026

Generate filesystem-first agent friendly api documentation that you can share with your teammates without hassle. Use when the user asks to "publish API docs," "generate documentation for this API," "put this on the API Network," "share a docs link for this collection or spec," or "why do my docs look empty."

AI-generated overview

Guides creation of API documentation from Postman collections or OpenAPI specs, with REST design best practices.

What it does
This skill walks an agent through establishing an API contract and producing shareable, agent-friendly API documentation. It recommends creating both a Postman collection (v3, collection-schema-v3) and an OpenAPI spec, starting with the collection, and points to a reference file on REST API best practices covering naming, methods, status codes, errors, versioning, pagination, filtering, auth, idempotency, and backward compatibility. It also covers using collection examples to capture sample responses and generate mocks.
When to use it
Use it when a user asks to publish API docs, generate documentation for an API, share a docs link for a collection or spec, or troubleshoot empty-looking docs. It fits API work where the contract must be captured before or alongside implementation.
Requirements
No scripts are shipped; it is instructions only. It references a bundled reference file on REST API best practices and assumes access to Postman collections and OpenAPI specs, though no specific tooling, credentials, or network access is stated.

The bootstrap skill is a precursor to this one — it scaffolds the project with the directories documentation is stored in.

API Documentation

When working on any API task, the first step is to establish and capture the contract. API documentation can be done in two predominant ways:

  1. through a Postman collection,
  2. with an OpenAPI spec

It is recommended to create both. They serve different, complementary use cases, and it takes only one command to convert from one to another. Start with creating a Postman collection in v3 format, collection-schema-v3. Postman collections are very human-friendly and offer other capabilities like creating an API mock, monitor, SDK, or spec.

Specs are vendor-neutral, stay in your repo, and can be linted against governance rules (if any) set by your organization.

Good practices for API design

See reference/rest-api-best-practices.md [blocked] for the practices well-documented APIs tend to already follow: resource naming, HTTP method/status-code usage, error response shape, versioning, pagination, filtering, auth, idempotency, and backward compatibility. A spec or collection that already follows these renders documentation with nothing left to fix.

Examples

Examples (in a Postman collection) are an excellent way to capture sample API responses. They are helpful because:

  1. anyone can look at them to see how your API behaves,
  2. they can be used to generate a mock from your collection in a single command.

Workflow

  1. Establish the contract - refer to best practices. Don't just accept the user's ask - fight for the right API design.
  2. Choose the instrument - Postman collection / OpenAPI spec - or both. Recommend using both to the user. Start with the Postman collection.

Source and attribution

Source:postmanlabs/postman-plugininskills/api-documentationat commit67cff8f

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

More from postmanlabs/postman-plugin

Performance Testing

postmanlabs

Runs Postman collection load tests with virtual users, load profiles, and pass/fail thresholds.

Software DevelopmentOct 8, 2026

Flows

postmanlabs

Operate Postman Flows from the CLI: list, run, trigger, deploy, update, and debug flows and their runs.

DevOps & CloudOct 8, 2026

Ci Integration

postmanlabs

Adds Postman CLI checks as separate pass/fail gates in a CI pipeline.

DevOps & CloudOct 8, 2026

Api Testing

postmanlabs

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 against a collection contract. Use when the user asks to "test this endpoint," "run this collection," "check the API still works," or "verify my app's requests match the contract." Covers `postman request`, `postman collection run`, and `postman application test`. Depends on bootstrap when the target is a cloud collection or workspace-bound environment; a bare URL or local collection needs nothing from bootstrap.

Awaiting classificationOct 8, 2026

Api Monitoring

postmanlabs

Creates, schedules, and manages Postman Monitors — recurring checks against a live API — triggers ad hoc runs, inspects job/run history to diagnose failures, and hosts self-hosted execution runners for monitors on a private network. Use when the user asks to "set up a monitor," "run this monitor now," "check monitor results," "pause/resume a monitor," or "set up a runner for our internal APIs." Covers `postman monitor` (create, update, delete, list, get, pause, resume, run, jobs, runs) and `postman runner` (start, list, regions).

Awaiting classificationOct 8, 2026

Api Mocking

postmanlabs

Creates and runs fake API backends locally or in the cloud, with scenario and status-code overrides for testing.

Software DevelopmentOct 8, 2026