With Postman Notebooks, you showcase your public APIs with interactive articles. Notebooks combine your documentation, code, and APIs in one place, where you guide your API consumers to their first 200 OK response.
For example, document the steps to get an API key. Then, ask your readers to add the API key to your notebook and invite them to send their first request. Postman will return a response to the same notebook. You can do something similar for real-world use cases and showcase your API's capabilities to your API consumers.
Your notebooks are linked to your public profile. Before you get started, make your profile public. Then, you can view your notebooks and create new ones.
To view your notebooks, do the following:
From the Notebooks tab, you can create a new notebook or open an existing one.
Open your notebooks and click New draft.
Start by naming your notebook and adding text to it. Postman saves as you type. You can format text by selecting it or using the slash command, and also use the slash command to add input blocks and add interactive blocks.
You can preview your draft at any time. To preview, click Preview. To return to the editor, click Edit Notebook.
Important: Postman scans your notebooks for sensitive data. If it detects any, it replaces them with placeholders. To learn more, see Postman Secret Scanner.
You can format your notebook with text and block styles. Use text styles to bold, italicize, and strike through text. Use block styles to format headings, lists, quotes, and code blocks.
To format text, select it. Postman displays a text menu. Then, select one of the options, such as Bold.
To format a block of text, place your cursor at the start of the block and type a forward slash ("/"). Postman displays a block menu. Then, select one of the options, such as Quote.
You can also format your notebook with Markdown and keyboard shortcuts. For example, to use Markdown to bold the word "Postman", type "**Postman**". To use a keyboard shortcut to bold the word "Postman API Network", select the text and press Command + B or Ctrl + B.
You can add variables and reference them elsewhere in your notebook to create an interactive experience. For example, you can add an input block for your API consumer's email address and use a request block to send them a welcome message.
To add an input block to your notebook, do the following:
Open your notebook or create a new one.
Place your cursor where you want to add the input block. Then, type a forward slash ("/"). Postman displays a block menu.
Choose an input block type:
Name your input block.
(Optional) Define a default value.
You can reference your input block by name. For example, if you name your input block "email", you can reference it in another input block or a request block with the syntax {{email}}
. Or you can reference it in a code runner block with the syntax $email
.
With interactive blocks, API consumers can send requests and run code, all within your notebook. For example, add an input block for your API consumer's API key. Then, add a request block and connect it to one of your API requests. Someone reading your notebook can use these blocks and your documentation to send their first 200 OK response.
To add a request block to your notebook, do the following:
You can reference your request block by name. For example, if you name your request block "user", you can reference its response in another request block with the syntax {{user}}
. Or you can reference it in a code runner block with the syntax $user
.
You can also use dot notation to reference data within the response. For example, in another request block, you can reference the user's first email with the syntax {{user.emails.0}}
. Or in a code runner block, you can reference the same value with the syntax $user.emails[0]
.
To add a code runner block to your notebook, do the following:
Before you publish your notebook, open your draft and click Preview. Walk yourself through the steps you outlined in your notebook. Then, invite others on your team to do the same.
When you're ready to publish your notebook, open your draft and click Publish.
Last modified: 2025/05/30