# How To Copy a Read Only Collection into Your Own Workspace Using the Postman API

**URL:** <https://community.postman.com/t/how-to-copy-a-read-only-collection-into-your-own-workspace-using-the-postman-api/89128>\
**Category:** Help Hub\
**Tags:** collections, workspaces, postman-api\
**Created:** [March 5, 2026, 11:42pm UTC](https://community.postman.com/t/how-to-copy-a-read-only-collection-into-your-own-workspace-using-the-postman-api/89128 "2026-03-05T23:42:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [March 5, 2026, 11:42pm UTC](https://community.postman.com/t/how-to-copy-a-read-only-collection-into-your-own-workspace-using-the-postman-api/89128/1 "2026-03-05T23:42:01Z")

</div>

Recent changes to the Free Plan limit former [Team members’ access to Collections in Shared Workspaces](https://community.postman.com/t/free-user-access-and-team-admin-role-adjustments-in-postman/89149). A Team admin can still share them by connecting a Workspace to a git repo or providing exported files. You can also copy these Collections into an accessible Workspace programmatically using the Postman API.

The [Postman API](https://www.postman.com/postman/postman-public-workspace/collection/i2uqzpp/postman-api?action=share&source=copy-link&creator=52919447) can read and create Collections within a specified Workspace in your account, allowing you to duplicate them directly instead of exporting and importing manually.

* * *

In this post, I’ll share a few methods to achieve this, but the flow remains generally the same:

1. Retrieve the full collection JSON using the `GET /collections/{{source_collection_id}}` endpoint
2. Send that payload back to the API to create a new collection using the `POST /collections?workspace={{target_workspace_id}}`
3. Specify your workspace as the destination.

The result is an **identical copy of the collection inside a workspace you own**.

* * *

For all methods, you need your Postman API Key to authenticate your requests to the Postman API.

To get your Postman API Key, go to [https://go.postman.co/settings/me/api-keys](https://go.postman.co/settings/me/api-keys). Click the _Generate API Key_ button at the top right, name your key, and copy the value for later use.

### Get The Element Ids

To find the ID of any Postman element, including the CollectionID, open the element in a tab and go to the info section in the right sidebar.

 ![Screenshot 2026-03-05 at 23.19.38](https://us1.discourse-cdn.com/getpostman/original/3X/e/5/e5640b13f84ea8585321107613bf34f15535cd81.png)

To find the WorkspaceID, hover over the Workspace Name in the top left. A popout will appear showing Workspace metadata, including the WorkspaceID.

 ![Screenshot 2026-03-05 at 23.23.49](https://us1.discourse-cdn.com/getpostman/original/3X/c/2/c2cb661ca89dc37ce8497eb3e88418fe36dca787.png)

* * *

## Copy The Collection JSON And Import

You can use cURL and the Import feature together to get the Collection JSON from the Postman API and copy it to the clipboard with one command. Then, paste it into the Import input field to generate the Collection in your Workspace.

```auto
curl --location "https://api.getpostman.com/collections/{{collectionId}}" --header "X-Api-Key: PMAK-XXX" | pbcopy

```

This uses pbcopy for MacOS, but you can replace it with clip or xclip for Windows or Linux.

## Run This from The Terminal

If you prefer automating this locally, you can use a small script that performs the same task.

> <https://gist.github.com/DannyDainton/be112eb94dfd57186e203273bc9d52b6>

Create a new `.sh` file on your local system. Add your Postman API Key to the API\_KEY variable in the script. Then, open the Postman Terminal and run the command with the **CollectionID** and **WorkspaceID** as arguments.

```auto
 ./copy_collection.sh <collection_id> <workspace_id>

```

* * *

These methods copy only one Workspace at a time, but the Postman API offers routes you can use in a script to loop through all Collections in a workspace and place them elsewhere.

* * *

If you need to copy the **Environments** from a Shared Workspace to a Personal Workspace, use this script:

> <https://gist.github.com/DannyDainton/942ee1a270c0c3459611d354ae7bfaaf>

The only caveat with environments or all variables is that if the values aren’t in the Shared Values column, they won’t be fully copied. The new Environment will only show the variable name.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [March 6, 2026, 11:57am UTC](https://community.postman.com/t/how-to-copy-a-read-only-collection-into-your-own-workspace-using-the-postman-api/89128/2 "2026-03-06T11:57:44Z")

</div>

Pinned globally on March 6, 2026, 11:57am UTC


