This blog teaches you how to document your Postman collections using Markdown and comments. You will learn how to use Markdown syntax and features to format your documentation and how to use comments to add notes and feedback to your requests and responses.
1. Introduction
Postman is a popular tool for testing and developing APIs. It allows you to create, organize, and execute requests, as well as share and collaborate on collections with your team. But how do you document your Postman collections and requests? How do you add descriptions and explanations to your API endpoints, parameters, headers, and responses? How do you make your collections more readable and understandable for yourself and others?
In this tutorial, you will learn how to document your Postman collections using Markdown and comments. You will learn how to use Markdown in Postman to format your documentation with headings, lists, tables, images, links, and more. You will also learn how to use Postman comments to add notes and feedback to your requests and responses. By the end of this tutorial, you will be able to create well-documented and user-friendly collections that can help you and your team work more efficiently and effectively with APIs.
Ready to get started? Let’s begin by learning how to use Markdown in Postman.
2. How to use Markdown in Postman
Markdown is a lightweight markup language that allows you to format text using simple syntax. You can use Markdown to add headings, lists, tables, images, links, and more to your text. Markdown is widely used for writing documentation, README files, blog posts, and other online content.
Postman supports Markdown in various places, such as collection descriptions, request descriptions, folder descriptions, and response examples. You can use Markdown to document your Postman collections and make them more informative and user-friendly. For example, you can use Markdown to add a title, a summary, and a table of contents to your collection description. You can also use Markdown to add explanations, examples, and references to your request descriptions.
But how do you use Markdown in Postman? What are the syntax and features of Markdown? How do you preview and edit your Markdown text in Postman? In this section, you will learn the answers to these questions and more. You will learn how to use Markdown syntax and Markdown features to format your documentation in Postman.
2.1. Markdown syntax
Markdown syntax is the set of rules that define how to format text using Markdown. Markdown syntax consists of symbols and characters that you can use to create different elements, such as headings, lists, tables, images, links, and more. For example, you can use the hash sign (#) to create a heading, the asterisk (*) to create a bullet point, and the square brackets ([]) and parentheses (()) to create a link.
To use Markdown syntax in Postman, you need to enter your text in the description or example fields of your collection, folder, or request. You can use the toggle switch at the bottom of the field to switch between the edit and preview modes. The edit mode allows you to enter and edit your Markdown text, while the preview mode allows you to see how your text will look like when formatted with Markdown.
Here are some examples of how to use Markdown syntax in Postman:
- To create a heading, use one or more hash signs (#) followed by a space and your heading text. The number of hash signs determines the level of the heading. For example,
# Heading 1creates a level 1 heading, while## Heading 2creates a level 2 heading. - To create a list, use a hyphen (-), an asterisk (*), or a plus sign (+) followed by a space and your list item. To create a nested list, indent your list item with four spaces or a tab. For example,
- Item 1creates a list with two items and two subitems.
- Subitem 1
- Subitem 2
- Item 2 - To create a table, use pipes (|) to separate the columns and dashes (-) to separate the header row from the body rows. You can also use colons (:) to align the columns. For example,
| Name | Age | Gender |creates a table with three columns and two rows.
| --- | --- | --- |
| Alice | 25 | F |
| Bob | 30 | M | - To create an image, use an exclamation mark (!) followed by square brackets ([]) containing the image alt text and parentheses (()) containing the image URL. You can also add an optional title attribute inside the parentheses after the URL. For example,



