How to recover my collections with the Postman API?

faq
#1

The Postman API allows you to grab a list of Collections and reimport them into your app again. To do so, proceed as follows.

1 - Generate Postman API key here (if you don’t have one already).

2 - Use the /collections endpoint returns a list of all collections – https://docs.api.getpostman.com/#3190c896-4216-a0a3-aa38-a041d0c2eb72

Make sure to add the X-Api-Key header and add the key as the value.

3 - Hit send. It should return a list of all collections that are accessible by you (i.e your own collections and the ones you have subscribed to).

4 - Retrieve the UID associated with the collection you need to recover and pass it as a parameter to the GET Single Collection endpoint - https://docs.api.getpostman.com/#647806d5-492a-eded-1df6-6529b5dc685c

Make sure to add the X-Api-Key header and add the key as the value.

5 - Receive the JSON response and copy/paste it into the Import modal in-app as raw text.

2 Likes