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 (
:idsyntax 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
- Open your collection in Postman
- Click the three dots (โขโขโข) menu
- Select Export
- Choose Collection v2.1 (recommended)
- Save the JSON file
Step 2: Add to Your Docs
- Place the file in
/public/api-specs/ - Reference it in your MDX:
mdx
1<ApiReference spec="/api-specs/my-collection.json" parser="postman" />Or use auto-detection:
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!