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, 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
.
Last modified: 2025/07/28