Postman automatically generates documentation for every collection you create, including collections linked to an API. The documentation includes all of the requests in your collection, along with examples, authorization details, and example 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 the Postman editor to view how your content will look as you write it. Or use the classic Markdown editor to structure and format your descriptions using Markdown syntax. All of your descriptions are included in the documentation for your collection.
You can also add a description when creating a new request.
Use descriptions to tell people who use your collection more about what your collection does and the purpose of each request. Structure your descriptions with headings and add content such as text, tables, images, and links.
To add a description to a collection or folder, do the following:
Select Collections in the sidebar, and then select a collection or a folder.
Enter a description in the Overview tab. You can write your description using the visual Postman editor or the classic Markdown editor. Both are compatible, so feel free to switch between the two editors as you work.
Select outside of the editor to save your new content. If you ever need to make changes, you can edit the description again.
To add a description to a request, do the following:
Select Collections in the sidebar, and then select a request.
Select the documentation icon in the right sidebar.
Enter a description in the right sidebar. You can write your description using the visual Postman editor or the classic Markdown editor. Both are compatible, so feel free to switch between the two editors as you work.
Select outside of the editor to save your new content. If you ever need to make changes, you can edit the description again.
To give users even more details about requests in your collection, add descriptions to the request parameters and headers.
To write a description using rich text editing tools, select the Postman editor option. You can use the Postman editor to write a description without having to write any Markdown code. Use the tools on the toolbar to work with text and other content, as you would in a typical word processor. Or use common keyboard shortcuts to format text, like ⌘+B or Ctrl+B to make text bold.
View the tooltips to get help as you work. Hold your cursor over an item on the toolbar to see a description of the tool and the associated keyboard shortcut. If all of the tools aren't visible on the toolbar, select the more actions icon .
Create tables without Markdown. No need to fuss with Markdown code to get your tables to work. To add a table, select the Table tool. To add or remove columns or rows, or to delete the table, select a cell and then select the shortcut menu.
The Postman editor understands Markdown syntax. If you're comfortable using Markdown, enter any standard Markdown code to format text. For example, enter #
followed by a space to start a new heading, or enter ---
to add a horizontal line. To reuse documentation that's already written in Markdown, copy the existing Markdown code and paste it into the editor to instantly format it.
If you copy content from the Postman editor, the content will retain its formatting when you paste it into another application like a word processor or an email.
To write a description using Markdown, select the Classic Markdown editor option. Use standard Markdown syntax to create your content:
As you work, select the Preview tab to review how your documentation will appear and to make sure the formatting is correct. 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.
You can choose the default editor you want to use for editing documentation descriptions in Postman. When you edit a description, Postman will switch to your preferred editor. (You can still switch between the Postman and Markdown editors while editing a description.)
Add descriptions to parameters and headers to help others understand and use the requests in your collection. Open a request and enter 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 checkboxes aren't 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 show 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.
Examples are displayed when you view the complete documentation for a collection or when you view published documentation.
Use links to direct users to your repository, website, or other online resources.
To add a link using the Postman editor, select the Link tool. Paste or enter the URL and the link text, and then select Add. (If you need to change the link later, select it and then select the edit icon .)
To add a link using the Markdown editor, use the following syntax:
[link text to display](https://your-link-url.com)
Images liven up your documentation and help your ideas come across with more clarity. You can upload an image file from your computer or embed an image that's hosted online.
To upload an image using the Postman editor, select the Image tool and select Browse. Select the image you want to upload and select Open. The Postman editor supports GIF, JPG, PNG, and SVG formats. The maximum supported image size is 5 MB.
You can also upload an image by copying and pasting an image into the Postman editor, or by dragging an image file into the Postman editor.
Your image must be hosted online (for example, on a website) before you can embed it in your documentation.
To embed an image using the Postman editor, select the Image tool and select Embed URL. Paste or enter the URL of the image, and then select Embed.
To embed an image using the Markdown editor, use the following syntax:
![image alt text](https://your-image-location.com)
You can change an image after uploading or embedding it:
To change an image in the Postman editor, first select it and select the delete icon . Then upload or embed a new image.
To change an image in the Markdown editor, edit the Markdown code as needed.
To resize an image, select the image in the Postman editor and drag the resize handles. You can also specify a new value for width
in the Markdown editor.
To add or edit a caption, select the image in the Postman editor and enter a caption below the image.
If you are on a Postman Free plan and aren't part of a team, the total size of your uploaded images is limited to 20 MB. If you are part of a team (free or paid plans), the total size of your team's uploaded images is limited to 100 MB.
To check how much storage you're using, go to your billing dashboard and select Resource Usage. The amount of space used by uploaded images and files appears under Storage Usage. To upgrade your available storage, contact Postman support.
When you reach 90% of your storage limit and above, you will get a warning each time you try to add an image. To learn more about the resources included with your Postman plan and what happens when you reach your usage limits, go to About resource usage.
You can embed videos hosted on YouTube or Vimeo in your documentation. Your documentation displays a preview of the video, and users can select the preview to start playback without leaving Postman.
You can't embed a video hosted on a service other than YouTube and Vimeo, but you can add a link to the video.
To embed a video using the Postman editor, select the Video tool. Paste or enter the URL of the video, and then select Embed.
To embed a video using the Markdown editor, use the following syntax:
<video src="https://www.youtube.com/embed/FeqSWgx6FxY?si=-5pR5tgUQtPN8P6z" alt="View Public Workspace Metrics" width="340" height="170"></video>
You can't play videos when editing documentation. Select Save, and then select the video to start playback.
You can change a video after uploading or embedding it:
To change a video in the Postman editor, first select it and select the delete icon . Then embed a new video.
To change a video in the Markdown editor, edit the Markdown code as needed.
To resize a video preview, select the video in the Postman editor and drag the resize handles. You can also specify a new value for width
in the Markdown editor.
To add or edit a caption, select the video in the Postman editor and enter a caption below the video.
Postbot can write documentation for your requests. Use Postbot to automatically add descriptions, including request parameters and response examples. You can also use Postbot to edit and improve existing documentation for requests.
To write request documentation with Postbot, do the following:
Select Collections in the sidebar, and then select a request.
(Optional) Send the request so there is a response for Postbot to analyze.
Select the documentation icon in the right sidebar and select Generate with Postbot.
You can also select Postbot in the Postman footer and select Add documentation. Or enter a prompt with specific details, like “add docs and describe the 401 status code”.
For more information on Postbot, see About Postbot.
Need some help using Markdown? Check out the Postman Markdown demo collection to learn 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 Postman API Network to find examples of great documentation created in Postman.
Open the Postman API Network page or select API Network > View all public APIs in the Postman header.
Select Collections or Workspaces in the left pane.
Select a collection or workspace to access documentation written by others who are part of the Postman API Network.
Last modified: 2023/07/21