← Back to Overview

COLLECTIONS

Creating Collections

Organize your API requests into collections — choose between Local (workspace-specific) and Global (shared across all workspaces) scope.

Collections sidebar with Local and Global groups

Local vs Global Scope

Collections exist in one of two scopes, determining where they're stored and who can see them:

Local

Stored in .openpost/collections.json inside your workspace. Workspace-specific and git-committable — share with your team by committing the file.

Global

Stored in ~/.openpost/global/collections.json. Shared across all VS Code workspaces on your machine.

Both scopes shown in the sidebar with scope labels (Local/Global)
Cross-window sync: Global collection changes sync across VS Code windows automatically via file system watcher
No-workspace mode: When no folder is open in VS Code, only Global collections are available

Creating a Collection

Create a new collection from the sidebar in a few steps:

1

Open the Collections tab in the sidebar

2

Type a name in the input field at the top

3

Choose Local or Global from the scope selector

4

Press Enter to create

• New collections start empty — no folders or requests.

• Each collection receives a unique UUID v4 identifier.

• You can also create collections programmatically via the Management MCP server using the create_collection tool.

Renaming

Two ways to rename a collection:

Collection Editor

Click the collection name in the sidebar to open the Collection Editor, then click the name at the top to make it editable. Press Enter or click away to save.

Context Menu

Right-click the collection in the sidebar and select Rename.

The name is stored in collections.json — no file rename is needed on disk.

Deleting

Remove a collection and all its contents permanently:

Right-click the collection in the sidebar → Delete
A confirmation dialog is shown — this action is irreversible
All contained folders and requests are deleted with the collection
Note: Any open tabs belonging to the deleted collection will show a "This collection may have been moved or deleted. Please close this tab." message.

Saving Requests to a Collection

Once you've built and tested a request, save it to a collection for reuse:

ActionShortcutBehavior
Save⌘S / Ctrl+SFirst save opens the save dialog; subsequent saves go to the same location (quick save)
Save AsSave a copy to a different collection or folder
Save copy toDropdown showing both Local and Global collections with scope labels
Pick the target collection and folder from the save dialog
Name the request (defaults to the URL if left empty)
Can save to either Local or Global collections regardless of workspace state

Scope Labels & Visibility

Understanding when and where collections appear:

ScopeVisibilityBest for
LocalOnly visible in the workspace it belongs toProject-specific APIs, team-shared via git
GlobalVisible in every workspace on your machineShared utilities, auth tests, health checks
The sidebar shows both Local and Global collections grouped separately
Scope is shown as a subtle badge next to the collection name
Use Global for shared utilities (auth tests, health checks) and Local for project-specific APIs

Next

Ko-fi