Skip to navigation

Export data from Postman

View as Markdown

You can export your Postman data, including collections, environments, and global variables, as JSON files. You can import these files back into any Postman instance, share them with others, or use them with the Postman CLI.

To learn about data imports, see Import data into Postman.

You can connect your workspace to a Git repository to ensure continuous flow of your data from and to the repository and help you and your team maintain a single source of truth. You can keep your data local and push updates to Postman Cloud when you’re ready. For more information, see Native Git.

Export collections

When you export a collection, Postman fetches the latest version from your workspace, formats it as Collection Format v2.1, and scans it for secrets before you download it.

To export a collection, do the following:

  1. Click Collections in the sidebar.

  2. Click Options icon View more actions next to a collection, then select More > Export collection.

  3. Select why you’re exporting the collection: Share with teammates, Run in CI/CD, Store in a Git repo, or Other. If you select Other, choose or enter a reason, then click Start Export.

    Postman checks your export permissions, prepares the collection, and scans it for secrets. It also suggests other ways to work with the collection, such as sharing it with your team or connecting it to a Git repository with Native Git.

  4. If Postman finds secrets in the collection, click Move to Vault to replace them with vault secrets. To keep the secrets in the exported file in plain text, click Export anyway. To learn which secret types Postman checks for, see Default patterns.

  5. Click Export Collection to download the JSON file.

If Postman doesn’t ask why you’re exporting the collection, it opens the Export collection modal instead. Click Export JSON to download the collection as a JSON file.

Export environments

  1. Click Environments in the sidebar.
  2. Click Options icon View more actions next to an environment, then Export. The file will download automatically.

To export your global variables, click Variable list icon Variables in the upper-right of the workbench to open the variables pane. Click Globals in the sidebar, then click Export in the workbench.

Export Postman data

You can export a bulk data dump of all your collections and environments in Postman. You can then import the data into any Postman instance. If you are on a team, only Admins and Super Admins can export bulk data.

To export a data dump, do the following:

  1. In the Postman header, select Setting icon Settings > Account settings.

  2. Click Account, then click Export Data.

  3. Click Export Data, then select the data types you want to export. You can export collections, environments, or both.

    The data dump will include collections and environments from all workspaces you’ve created, including personal, private, team, and public workspaces.

  4. Click Request Data Export.

When the export is ready, you’ll get an email with a link to download the bulk data file. The download is available for two days, after which it expires.

Export Postman elements with Native Git

You can use Native Git to sync elements between a Postman workspace and a local project folder as files, then commit them to your Git repository. The postman folder includes subfolders for collections, environments, flows, globals, mocks, and specs.

To export your elements, do the following:

  1. Connect your workspace to a local folder and set up Git. You need Git to pull elements from Postman Cloud.
  2. In your workspace, click Pull from cloud.
  3. Select the elements you want to export, then click Pull from Cloud. To learn more, see Pull from Postman Cloud.
  4. Commit and push the files to your remote repository.

Mocks are saved in the postman/mocks folder, and you can push and pull them to and from Postman Cloud. Mock servers are hosted in the Postman Cloud and aren’t stored as files. To learn more, see Create mocks with JavaScript.

Running a flow locally with the postman flows run command is available with Postman Enterprise plans. To learn more, see Flows commands.

You can also use the Postman CLI to sync elements between local files and cloud workspaces. To learn more, see Sync local elements with workspaces.