You can add a set of variables to an environment that you can use in your requests. Variables are reusable values you can use in your API requests and scripts. Environments make it easier to change variables based on your work context, such as sending requests to a test or production server. When you switch between environments, all variables in your requests and scripts use the current environment's values.
To learn more about managing environments in Postman, see Group sets of variables in Postman using environments.
To create an environment and add variables to it, do the following:
You can also use the
Postman: Create a new Postman Environment
command from the Command Palette to create an environment.
To use environment variables in a request, do the following:
Last modified: 2025/08/22