Authoring your docs
Postman automatically generates documentation for every collection you create. The documentation includes all of the requests in your collection, along with examples, authorization details, and sample code.
To help your teammates (or the world) better understand what you're building, add detailed descriptions to your collection and the items in it. Use standard Markdown syntax to structure and format your descriptions. All of your descriptions are included in the documentation for your collection.
You can also add a description when creating a new request.
- Adding descriptions to your documentation
- Including authorization details
- Including examples
- Adding links
- Adding images
- Finding help and inspiration
- Next steps
Use descriptions to tell people who use your collection more about what your collection does and the purpose of each of request. Structure your descriptions with headings and add content such as text, tables, images, and links.
To add or edit the description for an existing collection, folder, or request:
- Select Collections in the sidebar, and then select a collection, folder, or request.
- Select Documentation in the context bar.
- Select the edit button next to the description.
- Author your description using Markdown.
- When you're finished, select Save to save your documentation. If you ever need to make changes, just edit the description again.
To give users even more details about requests in your collection, add descriptions to the request parameters and headers.
To author a description using the Markdown editor, select the Markdown option. Use standard Markdown syntax to create your content:
- Structure content with headings, lists, and tables
- Format text with bold, emphasis, and blockquotes
- Add images, links, and code blocks
As you work, select the Preview tab to see how your documentation will appear and to make sure it's formatted correctly. To continue editing, select the Markdown tab.
Leave a blank line before and after block elements (such as headings, paragraphs, and lists) to avoid any formatting issues.
Add descriptions to parameters and headers to help others understand and use the requests in your collection. Open a request and type the description in the box next to the key-value pair.
The parameter and header descriptions are visible to people who have access to your collection or anyone viewing your published documentation. The descriptions appear in the documentation along with the request, next to the parameter or header name.
All key-value pairs are included in your documentation even if their check boxes are not selected. Use the description to note which parameters and headers are required and which are optional. Anyone using your collection can choose which key-value pairs to include when sending requests or generating code snippets.
Your documentation automatically includes the type of authorization required to access your endpoints. The authorization details appear below the collection description and also below each request in your documentation.
If you specify authorization details for the collection, those authorization requirements are inherited by every request in the collection. If one of your endpoints requires a different authorization type, open the request and change the authorization details. The changes are reflected in your documentation.
Examples are paired requests and responses that demonstrate your endpoints in action. Any examples you add to a collection are automatically included in the documentation. For each request, your documentation shows the example code snippets as well the example response body and headers.
Use links to direct users to your repository, web site, or other online resources.
To add a link using Markdown, use the the following syntax:
[link text to display](https://your-link-url.com)
Images liven up your documentation and help your ideas come across more clearly. Your image must be hosted online before you can add it to your documentation.
To add an image using Markdown, use the following syntax:
![image alt text](https://your-image-location.com)
Need some help using Markdown? Check out the Postman Markdown demo collection to see how Markdown is formatted in published documentation. Select the Run in Postman button to add the demo collection to your workspace and view the Markdown code.
Looking for some documentation inspiration? Browse through the Public API Network to find examples of great documentation created in Postman.
Navigate to the Public API Network page or select Explore in the Postman header.
Select Teams, Workspaces, APIs, or Collections in the left pane.
Select a team, workspace, API, or collection to see documentation authored by others who are part of the Public API Network.
To make your documentation publicly available, see Publishing your docs.