# Installing Insomnia Rest to Open Banking Connect API
source: https://developer.mastercard.com/open-banking-connect/documentation/tutorials-and-guides/insomnia-tutorial/index.md

This tutorial covers installing the Insomnia Rest application to the Open Banking Connect APIs.

## Install Insomnia and Mastercard Auth Plugin {#install-insomnia-and-mastercard-auth-plugin}

* Download Insomnia for your OS from \[<https://insomnia.rest/download/>\]
* Install and launch the application. You should see the following user interface.

*NOTE: If you already have Insomnia app installed, please make sure you update it to version 5.15.0 or above.*

![Insomnia Send a request](https://static.developer.mastercard.com/content/open-banking-connect/img/tutorials/OBC_Insomnia_home_page.png)

[Mastercard auth plugin](https://insomnia.rest/plugins/insomnia-plugin-mastercard)

## Create a new Open Banking workspace {#create-a-new-open-banking-workspace}

1. Import API spec from the URLs:

   * AISP (<https://developer.mastercard.com/devzone/api/portal/servicespec/open-banking-connect-ais/swaggerui>)
   * PISP (<https://developer.mastercard.com/devzone/api/portal/servicespec/open-banking-connect-api/swaggerui>)  

2. Select Import/Export
   ![Insomnia Import/Export](https://static.developer.mastercard.com/content/open-banking-connect/img/tutorials/OBC_Insomnia_Importexport.png)

3. Select Import from URL
   ![Insomnia Import from URL](https://static.developer.mastercard.com/content/open-banking-connect/img/tutorials/OBC_Insomnia_ImportFromURL.png)

4. Copy the API Spec URL
   ![Insomnia Import From URL Browse](https://static.developer.mastercard.com/content/open-banking-connect/img/tutorials/OBC_insomnia_ImportURLBrowse.png)

5. Create a New Workspace
   ![Insomnia Import Create New Workspace](https://static.developer.mastercard.com/content/open-banking-connect/img/tutorials/OBC_Insomnia_Import_CreateWorkspace.png)

## Create environments {#create-environments}

In Insomnia add the following configuration by selecting "Manage Environments", add the json code to the "base environment", and then fill in the consumerKey, keyAlias, keystoreP12Path, and keystorePassword. Refer to [Insomnia collection - create environmnent](https://developer.mastercard.com/platform/documentation/developer-tools/insomnia-collection/#step-4---configure-environment) for details.

### Manage environments {#manage-environments}

![Insomnia Manage Environment](https://static.developer.mastercard.com/content/open-banking-connect/img/tutorials/OBC_Insomnia_ManageEnvironments.png)

### JSON Base environment code {#json-base-environment-code}

```json
{
  "base_path": "/openbanking/sandbox/connect/api",
  "base_url": "{{ scheme }}://{{ host }}{{ base_path }}",
  "host": "api.mastercard.com",
  "mastercard": {
    "consumerKey": "YOUR_CONSUMER_KEY",
    "keyAlias": "YOUR_KEYALIAS",
    "keystoreP12Path": "YOUR_KEYSTORE_P12_PATH",
    "keystorePassword": "YOUR_KEYSTORE_PASSWORD"
  },
  "scheme": "https"
}
```

### Manage environment keys {#manage-environment-keys}

![Insomnia Manage Environment Keys](https://static.developer.mastercard.com/content/open-banking-connect/img/tutorials/OBC_Insomnia_ManageEnvironment_Keys.png)

## Send a request {#send-a-request}

Choose a request from the right-hand side and click the **Send** button to submit the request and get the response back.

![Insomnia Send a request](https://static.developer.mastercard.com/content/open-banking-connect/img/tutorials/OBC_insomnia_SendRequest.png)

## Thank You {#thank-you}

**Congratulations! You have completed this tutorial.**

Return to the [Knowledge Base](https://developer.mastercard.com/open-banking-connect/documentation/tutorials/index.md)

Return to [Documentation](https://developer.mastercard.com/open-banking-connect/documentation/index.md)
