Last Updated On
You can share your collections, collection folders, APIs, and environments with collaborators. There are several different ways to share an element. Here, we are using API to share the Postman Collection.
To share a collection’s JSON using the Postman API, do the following:
Step 1 – Go to your collection – Click the arrow – Click on the Share button.
![](https://qaautomation.expert/wp-content/uploads/2023/09/image-30.png?w=1028)
Step 2 – Select “Via API”.
![](https://qaautomation.expert/wp-content/uploads/2023/09/image-27.png?w=797)
Step 3 – Select Get collection JSON using Collection Access Key
![](https://qaautomation.expert/wp-content/uploads/2023/09/image-52.png?w=633)
Step 4 – Select Generate New Key to create a read-only collection access key. This key expires after 60 days of inactivity.
![](https://qaautomation.expert/wp-content/uploads/2023/09/image-28.png?w=777)
Step 5 – Copy the link and go to the Command line. Here we can run the collection using the collection URL using our Newman tool. Newman is the command-line runner for the postman.
Run the collection through URL by running the command:
newman run <copied URL>
Note: If Newman is not installed, please refer to this tutorial.
![](https://qaautomation.expert/wp-content/uploads/2023/09/image-29.png?w=945)
It starts running the Collection and displays the result. The same command is used to run the collection in the Remote system, even if that system has no Postman app installed.