Open In App

How can you set up environments in Postman?

Last Updated : 14 Dec, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Postman is an API(application programming interface) development tool that helps to build, test and modify APIs.  In this tutorial, we will see how to set up an environment in the Postman.

Prerequisites:

Steps to setup environments in Postman

Step-1: Open Postman in your Browser / Downloaded App and create a collection named ‘Demo_APIs’ using the ‘+’ icon.

ss-1_postman

Step-2 : Navigating to Environment Tab on the left to create a new environment.
ss-2_postman-(1)-(1)

Step-3 : Create a new environment by clicking the ‘+’ icon and add the variable as required then click on save.

env_sample-(1)

Step-4 : Now come to the new request section in collections and add the environment from the right top environment dropdown.

ss-7_postman-(1)-(1)

Step-5 : Now send the API request you will be able to successfully get the require output. The response in the initial before using environment and after using the environment are same as shown below

Before:

ss-8_postman-(1)-(1)

After:

image-(4)-(1)-(1)


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads