Create Postman requests and variables using Postman Flow blocks

To use an API, a request must be made to either send, update, delete, or return information. When making a request, the information is often different every time it's run. Because of this, variables are used to interact with the requests in places where the data being sent or received changes.

To learn more about making your first request, check out the tutorial here.

Requests

In Postman Flows, the Send Request block enables you to select a request from a collection.

Select a request

If there are no collections in the workspace, six easy-to-use requests will appear in the spotlight to choose from to get started.

This example uses Postman's echo service API.

Postman Flows can run requests that use files in your local working directory to send body data. To make collaboration and publishing your Flow easier, upload your test data files to your Postman team.

Variables

Variables are values that can change from one request to another. These can be things like IDs, usernames, and numbers.

The variables part of the Send Request block opens automatically and enables you to enter values.

Adding variables

In this request, the two variables are named value1 and value2 and were set up in the request. (For more information on setting up variables in requests, visit here.) Once the request runs, you can view the values in the Success output. The values returned are whatever the value1 and value2 variables are set to (in this example, hello and there).

Last modified: 2023/08/15


Postmanaut dancing. Illustration.