Import and Export Data
Insomnia supports importing and exporting. Currently, the supported import formats are Insomnia, Postman v2, HAR, OpenAPI, Swagger, WSDL, and cURL.
To import or export data, go to Preferences, then the Data tab.
The Data tab in Preferences allows you to import or export data via dropdown options.
Export Special Resources and Resource Types
The following outlines special resource IDs, used to map to data, and resource types, used to outline what’s included and excluded from an export file.
Note: The Insomnia Importers Package has support for migrating older export versions to the latest, as well as supporting external formats like HAR, Postman, Swagger/OpenAPI, and Curl. If you want to contribute new formats, feel free to submit a pull request to the insomnia-importers NPM package.
Special Resource IDs
Special resource IDs are used to map to data in an active workspace. They look like variables within the export file. Some example special resource IDs are:
|Maps to the ID of the currently active workspace
|Maps to the ID of the active workspace base environment
|Any value matching this format will deterministically generate a new ID at import time
We offer a variety of resource types. Resource types outline what is included and excluded from an export file. Some responses and metadata models aren’t exported.
See all resource types listed under data.resources.