Import and Export Data
Insomnia supports importing and exporting. Currently, the supported import formats are Insomnia, Postman v2, HAR, OpenAPI (versions 3.0, 3.1), Swagger, WSDL, and cURL.
Export a Document, Collection, or a single request.
From the Document or Collection name dropdown menu, select Import/Export. Select an option from the Export Data dropdown menu.
Alternatively, in Preferences and under the Data tab, select an option from the Export Data dropdown menu. If you’re inside a Document or Collection, you’ll have the option to export that specific Document or Collection.
If you’ve selected to export a Document or Collection, choose to export the whole set or individual requests.
Import data from a file, URL, or Clipboard.
From the Document or Collection name dropdown menu, select Import/Export. Select an option from the Import Data dropdown menu.
Alternatively, in Preferences and under the Data tab, select an option from the Import Data dropdown menu.
Also, you can paste copied cURL command straight to URL bar.
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 on GitHub.
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.