Postman Collections and Folders
A collection is a saved group of related API requests. Instead of retyping a URL every time you test an API, you save all your requests into a collection and run them with a single click. This topic teaches you how to create, organize, and use collections effectively.
Why Collections Matter
Imagine testing an online store API. You have dozens of requests — get products, add a product, update a product, delete a product, log in, check orders, and so on. Without collections, you lose each request the moment you close the tab. Collections save your work permanently and organize it in a structure that makes sense.
Collection Structure Diagram
📁 Online Store API (Collection)
│
├── 📂 Authentication
│ ├── 🔵 POST Login
│ └── 🔵 POST Refresh Token
│
├── 📂 Products
│ ├── 🟢 GET All Products
│ ├── 🟢 GET Product by ID
│ ├── 🔵 POST Create Product
│ ├── 🟡 PUT Update Product
│ └── 🔴 DELETE Product
│
└── 📂 Orders
├── 🟢 GET My Orders
└── 🔵 POST Place Order
A collection holds folders. Folders hold requests. This hierarchy keeps everything neat and easy to find.
Create a New Collection
- Click the Collections tab in the left sidebar
- Click the + icon at the top of the sidebar or click New Collection
- Type a name for your collection, for example: JSONPlaceholder Practice
- Click Create
Your new collection appears in the sidebar. It is empty at first.
Add a Request to a Collection
Method 1: Save from a Request Tab
- Build your request in a tab (URL, method, headers, body)
- Click Save (or press Ctrl+S)
- Give the request a descriptive name
- Select the collection to save it in
- Click Save
Method 2: Add Directly in the Sidebar
- Hover over your collection name in the sidebar
- Click the three-dot menu (...) that appears
- Select Add Request
- A new request tab opens already linked to that collection
Create Folders Inside a Collection
- Hover over your collection name in the sidebar
- Click the three-dot menu and select Add Folder
- Name the folder (for example: Users or Posts)
- Drag existing requests into the folder, or save new requests directly into it
Collection-Level Settings
A collection can hold shared settings that apply to every request inside it. Click the collection name to open the collection editor.
Authorization
Set an API key or token once at the collection level. All requests inside inherit it automatically. No need to set auth on each request individually.
Variables
Define variables at the collection level, such as a base URL. Every request in the collection can use this variable.
Scripts
Write pre-request or post-request scripts that run for every request in the collection. Useful for setting tokens or checking responses automatically.
Duplicate, Rename, and Delete
Right-click any collection, folder, or request in the sidebar to see options:
- Rename — change the name of the item
- Duplicate — creates an exact copy you can modify
- Delete — removes the item permanently
- Export — saves the collection as a JSON file you can share
Export and Import Collections
Collections are portable. You can export a collection as a JSON file and import it on another machine or share it with a teammate.
Export a Collection
- Click the three-dot menu on the collection
- Select Export
- Choose Collection v2.1 format
- Click Export and save the file
Import a Collection
- Click the Import button near the top of the sidebar
- Drag and drop the JSON file or click to browse and select it
- Click Import
The collection appears in your sidebar instantly with all its folders and requests intact.
Fork a Collection
Forking creates a personal copy of someone else's collection. You can edit a fork without changing the original. Use this when a teammate shares a collection and you want to experiment safely.
- Click the three-dot menu on the shared collection
- Select Fork
- Choose your workspace and click Fork Collection
Best Practices for Organizing Collections
| Tip | Why It Helps |
|---|---|
| Name collections after the API or project | Easy to find later |
| Group requests by resource or feature in folders | Mirrors how the API is structured |
| Name each request with its method and purpose | "GET All Users" beats "Request 1" |
| Add a description to each request | Helps teammates understand the purpose |
| Keep one collection per API or project | Avoids clutter in the sidebar |
Summary
Collections save and organize your API requests in a reusable, portable format. Folders within collections group related requests by feature or resource. Collection-level settings for auth and variables apply to every request inside, saving you repetitive setup. Exporting and importing collections makes sharing and backup simple.
