Answer
Import/Export Postman Collections
Exporting a Collection
- āClick on your Collection in the sidebar
- āClick the ... (three dots) menu
- āSelect Export
- āChoose Collection v2.1 (recommended) or v2.0
- āClick Export and save the JSON file
The exported file (MyCollection.json) can be:
- āCommitted to Git for version control
- āShared via email/Slack
- āUsed with Newman for CI/CD
Importing a Collection
Method 1: Drag and Drop
Simply drag the .json file into the Postman window.
āøMethod 2: Import Button
- āClick Import (top left)
- āChoose: File, Folder, Link, Raw text, or Code
- āSelect your file ā Click Import
āøMethod 3: Import from URL
CODE
Import ā Link ā https://raw.githubusercontent.com/org/repo/main/collection.json
āøMethod 4: Import from GitHub
- āImport ā Code Repository ā Connect GitHub
- āSelect your repository and collection file
Import Environment
JSON
// staging-environment.json
{
"name": "Staging",
"values": [
{ "key": "base_url", "value": "https://api.staging.com", "enabled": true },
{ "key": "api_token", "value": "staging-token-xyz", "enabled": true }
]
}
āøImport via: Import ā Files ā Select environment.json
ā¦
Postman Workspaces
A Workspace is a collaborative environment where you organize and share collections, environments, and APIs with your team.
Types of Workspaces
| Type | Visibility | Use Case |
|---|---|---|
| Personal | Only you | Personal experiments |
| Team | All team members | Shared project APIs |
| Private | Invited members only | Confidential internal APIs |
| Public | Everyone on internet | Open-source API docs |
Creating a Workspace
- āClick Workspaces (top menu)
- āClick Create Workspace
- āChoose type: Personal / Team / Private / Public
- āAdd team members (for Team/Private)
- āMove collections into the workspace
Benefits of Team Workspaces
- āEveryone sees the same collections without exporting/importing
- āChanges are synced in real-time
- āShare environments (staging, prod configs)
- āActivity feed ā see who changed what and when
- āRole-based access ā admin, editor, viewer
Workspace Best Practices
CODE
š Team Workspace: "User Service API"
āāā š Collections
ā āāā User API Tests
ā āāā Auth API Tests
ā āāā Regression Suite
āāā š Environments
ā āāā Development
ā āāā Staging
ā āāā Production
āāā š APIs
āāā User Service OpenAPI Spec
