<!-- https://testapilocally.com/docs/core-features/collections/ -->
# Collections

* **Platform Availability:** Windows App · VS Code Extension (shared shell)
* **Overview:** Collections group folders and requests into a Git-friendly tree on disk. They are the unit you import, export, run, mock, and document.

![Windows - Collections sidebar](/docs/assets/screenshots/windows/windows-collections-sidebar.png)

## Create a collection

### How It Works (Windows App)

1. In **API** mode, click **+ New collection** in the sidebar (or use Welcome → **Create Collection**).
2. Name the collection and press Enter.
3. Use the collection workspace tabs for Overview, Variables, Authorization, Scripts, Tests, Settings, and Documentation.

### How It Works (VS Code Extension)

1. Open SignOff Studio (`SignOff Studio: Open` or Activity Bar).
2. Same sidebar **+ New collection** flow as Windows — the webview UI is shared.

![VS Code - Collections sidebar](/docs/assets/screenshots/vscode/vscode-collections-sidebar.png)

## Collection workspace

| Tab | Purpose |
|-----|---------|
| Overview | Summary and quick actions |
| Variables | Collection-scoped variables |
| Authorization | Default auth inherited by children |
| Scripts | Collection-level pre-request / setup |
| Tests | Collection-level tests |
| Settings | Collection options |
| Documentation | Markdown docs for the collection |

**Actions:** Create request, Import, Run, Duplicate, Export, Delete, Sync OpenAPI, Mock toolbar.

## Tree context menus

### Request

Open · Run Request · Rename · Copy · Duplicate · Clone to… · Move to… · Move Up/Down · Generate Code · Save Response as Example · Create Example · Add to Runner · Reveal in File Explorer · Delete

### Folder

New Request/Folder · Run Folder · Start/Stop mock · Rename · Duplicate/Clone · Move · Import/Export · Generate Documentation · Open Scripts · Collapse/Expand · Terminal · Delete

### Collection

New Request/Folder · Run Collection · Rename · Duplicate/Clone · Import/Export Collection · OpenAPI sync · related share/export handlers

## Code / Configuration Examples

Collections persist as files under your workspace folder (Signoff format). After export you can share:

```bash
# Export from UI: Export → SignOff Studio
# Or keep the workspace under Git:
git add collections/
git commit -m "Add checkout API collection"
```

## Edge Cases, Troubleshooting & Pro-Tips

- Prefer folders for logical groups so Runner folder scope and mocks stay precise.
- Inherited auth on the collection avoids repeating Bearer tokens on every request.
- **Reveal in File Explorer** jumps to the on-disk JSON when syncing with teammates.

## Next

- [Requests](/docs/core-features/requests/)
- [Import & export](/docs/core-features/import-export/)
- [Runner](/docs/core-features/runner/)
