Migrate collections and environments from Postman to Insomnia

Uses: Insomnia
TL;DR

Export your Postman data as JSON files, create a project in Insomnia, click Import and select the files to import.

Prerequisites

Download and install Insomnia.

This how-to guide requires a Postman export. You can either export environments and collections individually (this can be useful if you want to import them into different Insomnia projects), or all at once from:

  • The Postman export page if you’re using Postman Enterprise or Cloud.
  • Settings > Data in your Postman app if you’re using the scratch pad.

Create a project in Insomnia

In Insomnia, click the + button in the left panel to create a new project in which you’ll import your Postman data. Select your preferred project type, in this example, we’ll use Cloud Sync.

Import your Postman data

  1. In the new project, click Import and select the files to import. You can import a ZIP file containing all of your Postman data, or separate JSON files.
  2. Click Scan to get a list of all the data that will be imported into Insomnia: Import of Postman data with two collections and an environment
  3. Click Import.

In this example, two collections and an environment are imported. Once the import is done, you’ll see your content in the Collections and Environments sections. In the case of a Cloud Sync project, the imported data is automatically synchronized. You don’t need to do anything else to share it with other members in your organization.

Select global environments (Optional)

If your collections use variables from a global environments, you’ll need to click Base Environment and select the global environment in each collection.

FAQs

Yes, most Postman scripts can be automatically converted by Insomnia during the import process. For more details, see Migrating scripts from Postman.

No, mock servers can’t be imported, they need to be recreated manually in Insomnia.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!