Postman Format Example

Auto-generated API docs from Postman Collection v2.1

This page demonstrates automatic API documentation generation from a Postman Collection v2.1.

Export your Postman collection and drop it in - the documentation is generated automatically!

Works with Postman!
Simply export your collection from Postman (v2.0 or v2.1) and reference it here. No conversion needed!

Loading API specification...


About This Example

This example shows how the parser handles:

  • โœ… Postman Collection v2.x format detection
  • โœ… Folder organization (nested items flattened)
  • โœ… Environment variables ({{baseUrl}} interpolation)
  • โœ… Path parameters (:id syntax preserved)
  • โœ… Query parameters with descriptions
  • โœ… Request bodies (raw, form-data, urlencoded)
  • โœ… Response examples from saved responses
  • โœ… Authentication (Bearer, API Key, Basic)

How to Use Your Postman Collection

Step 1: Export from Postman

  1. Open your collection in Postman
  2. Click the three dots (โ€ขโ€ขโ€ข) menu
  3. Select Export
  4. Choose Collection v2.1 (recommended)
  5. Save the JSON file

Step 2: Add to Your Docs

  1. Place the file in /public/api-specs/
  2. Reference it in your MDX:
Code
mdx
1<ApiReference spec="/api-specs/my-collection.json" parser="postman" />

Or use auto-detection:

Code
mdx
1<ApiReference spec="/api-specs/my-collection.json" />

Step 3: Enjoy!

Your entire Postman collection is now beautifully documented with:

  • Interactive playground for testing
  • Automatic parameter extraction
  • Response examples
  • Authentication info
Pro Tip
Keep your Postman collection up-to-date and simply re-export it to update your documentation!