Skip to content

Postman Collections

While being able to build requests using a GUI is nice, Postman starts to shine when you use collections. Postman Collections are simply a collection of pre-built requests that you can organize into folders and then easily export and share with others.

Exporting and importing Postman data

Postman can export and import the following formats as a file or generated URL. When you export a collection from the Postman app, the exported file is a JSON file. The file contains all data (and metadata) that is required by Postman to recreate the collection when imported back into Postman, or that is utilized by Newman to run the collection from the command-line interface (CLI).

Importing Swagger

A Swagger API definition usually lives like a single file, so we only support imports of single swagger files. If you have a lot of unlinked Swagger files in a folder, you can import those through the folder importer.

Saving a Swagger file as a collection:

  1. Clone the repository containing the Swagger definition to your local machine. If you have it saved locally as a file already, that's fine of course.
  2. Click on the Import button, and choose the Import File tab.

    import button

3.Click on the file and upload the Swagger file.

You're all set! Postman detects the Swagger definitions and convert them internally to Postman and then show you an import success message.

confirmation message