Collections & Folders
Organize your API requests into logical groups using folders. Mercury's file-based approach means your collection structure mirrors your file system.
What is a Collection?
In Mercury, a collection is simply a folder containing .http files. There's no special format or database — just your file system.
my-api-project/ ← Workspace root (collection)
├── .env ← Environment variables
├── auth/ ← Folder for auth-related requests
│ ├── login.http
│ └── register.http
├── users/ ← Folder for user endpoints
│ ├── get-user.http
│ ├── list-users.http
│ └── update-user.http
└── products/
├── list.http
└── create.http
Opening a Workspace
- Launch Mercury
- Click Open Folder or press
⌘+O - Select any folder — this becomes your workspace
Mercury scans recursively for all .http files and displays them in the sidebar.

Creating Folders
From Mercury
- Right-click in the sidebar
- Select New Folder
- Enter a name
From Your File System
Just create a folder in your workspace directory. Mercury detects it immediately.
mkdir users
touch users/get-user.http
Creating Requests in Folders
- Right-click on a folder in the sidebar
- Select New Request
- Enter the request name
The .http file is created inside that folder.
Folder Structure Best Practices
By Resource Type
api-tests/
├── users/
├── products/
├── orders/
└── auth/
By Environment
api-tests/
├── development/
├── staging/
└── production/
By Feature
api-tests/
├── authentication/
├── checkout-flow/
├── search/
└── admin/
Expanding and Collapsing
- Click the arrow next to a folder to expand/collapse
- Your expansion state persists between sessions
Use arrow keys to navigate the sidebar tree when focused.
Moving Requests
Drag and Drop
Drag a request to a different folder to move it.
Rename Path
Rename the file in your file system:
mv users/old-request.http products/new-request.http
Mercury updates automatically.
Renaming
- Right-click on a folder or request
- Select Rename
- Enter the new name
For folders, all child paths update automatically.
Deleting
- Right-click on a folder or request
- Select Delete
Deleting a folder removes all requests inside it. This action cannot be undone from within Mercury (but you can recover with git checkout if using version control).
Live File Sync
Mercury watches your workspace in real-time:
- Add a file → Appears in sidebar instantly
- Delete a file → Disappears from sidebar
- Move a file → Tree updates automatically
- Edit in VS Code → Changes sync to Mercury
No import/export ever needed!

Git Integration
Since collections are just folders and files, Git works perfectly:
cd my-api-project
git init
git add .
git commit -m "Initial API collection"
Share collections with your team:
git clone https://github.com/your-team/api-collection.git
Open the cloned folder in Mercury — done!
Searching Requests
Press ⌘+K (Mac) or Ctrl+K (Windows/Linux) to open quick search:
- Search by request name
- Search by URL
- Jump directly to any request
Related Features
- Requests — Working with
.httpfiles - Environments — Manage environment variables
- Import/Export — Import from Postman or Insomnia