# Configure the Postman Environment
source: https://developer.mastercard.com/mastercard-checkout-solutions/tutorial/use-postman-for-mastercard-checkout-services-apis/step2/index.md

## 2. Configure the Postman Environment {#2-configure-the-postman-environment}

Once you have the collection in your Postman workspace, setup the Postman Environment to set the base URL and other variables for your APIs.

### 2.1 Forking Mastercard Environment {#21-forking-mastercard-environment}

If you haven't forked the environment while forking the collection in [Step 1](https://developer.mastercard.com/mastercard-checkout-solutions/tutorial/use-postman-for-mastercard-checkout-services-apis/step1/index.md), follow the steps below.
1. Navigate to the **Environments** tab in the [mastercard-checkout-workspace](https://www.postman.com/mastercard/mastercard-checkout-workspace/overview).

2. If the API uses:   

   * Mastercard encryption: Search for *Mastercard API Sandbox Environment with Encryption*.
   * JWE encryption: Search for *Mastercard API Sandbox Environment with JWE Encryption*.
   * No encryption: Search for *Mastercard API Sandbox Environment* .   
3. Click on ellipsis (...) adjacent to the environment name and click **Create a fork** .
   ![Fork a collection in Mastercard Checkout Service Workspace](https://static.developer.mastercard.com/content/mastercard-checkout-solutions/documentation/images/postman-fork-environment.png "Fork collection in MACS")

4. Add a label to your fork, select the workspace in which you want to create the fork. Click **Fork Environment** . This will fork the *Mastercard API Sandbox* environment to your personal Postman workspace.

5. Navigate to the forked environment from the **Environments** tab in your workspace.
   ![Postman](https://static.developer.mastercard.com/content/mastercard-checkout-solutions/documentation/images/postman-setup-baseurl1.png "Postman")

6. For the `baseUrl` variable, set the `Current value` with the Sandbox URL value from your API specification.
   ![Postman](https://static.developer.mastercard.com/content/mastercard-checkout-solutions/documentation/images/postman-get-baseurl-from-api.png "Set baseUrl")

7. Click **Save**.

### 2.2 Creating an environment {#22-creating-an-environment}

If you have imported one of Mastercard's API specifications into your local workspace, you must create an environment to use for your collection.
1. Navigate to the **Environments** tab in your workspace.

2. Click on **New** and from the available choices, select **Environment** .
   ![Fork a collection in Mastercard Checkout Service Workspace](https://static.developer.mastercard.com/content/mastercard-checkout-solutions/documentation/images/postman-create-new-environment.png "Create new environment")

3. Provide a name to your environment and create a new variable called `baseUrl`. Set the `Current value` with the Sandbox URL value from your API specification.
   ![Postman](https://static.developer.mastercard.com/content/mastercard-checkout-solutions/documentation/images/postman-get-baseurl-from-api.png "Postman")

4. Ensure that your environment looks like the following and click **Save** .
   ![Postman](https://static.developer.mastercard.com/content/mastercard-checkout-solutions/documentation/images/postman-create-environment.png "Postman")

