Import Postman data using the Postman VS Code extension

You can import collections and environments that were exported from Postman. You can also import requests using a cURL command.

Postman no longer supports the collection v1 format. You can convert your collection's format from v1 to v2 to import it using the VS Code extension.

To import data, do the following:

  1. Click Import icon Import at the top of the sidebar.

  2. Choose how you'd like to import your data:

    • cURL - Enter your curl command. The VS Code extension opens the request in a new tab. Make sure to save the request to a collection.

      You can convert a Postman request to a curl command, and import it using the curl command.

    • File - Select collection or environment files. If you're importing a single file, the VS Code extension imports it after you select it.

    • Folder - Select a folder that has multiple collection or environment files.

    • .env files - The VS Code extension detects .env files in your API project that haven't been imported into Postman. When you select this option, Postman checks for new .env files that you haven't imported yet. You'll receive an in-app notification if no new files are detected. Learn about importing environment variables into a new environment in Postman.

  3. If you're importing multiple files or a folder, select the checkbox next to the files you want to import, then select Import.

You can also use the Postman: Import command from the Command Palette to import data.

Last modified: 2025/07/25


Postmanaut Cooper jumping over crystal ball. Illustration.