Skip to content

Collections and folders ​

A collection is a named group of saved requests, usually one per API or project. Collections can hold folders, shared settings and variables, and ApiWorkbench keeps earlier versions of each one so you can undo a mistake.

The Collections panel showing the Shop API collection with two folders and their requests
  1. 1Search requests — Filters by name, URL or folder.
  2. 2Import — Brings in a Postman, OpenAPI, HAR or workspace file.
  3. 3Create a collection — Adds a new, empty collection.
  4. 4Collection — Click to open or close it. The number is how many requests it holds.
  5. 5Menu — Run, load test, import, settings, export, docs, history, variables, rename, delete.
  6. 6Folder — Groups requests inside a collection.
  7. 7Request — Click to open it in a tab. The open request is highlighted.

Create a collection ​

  1. Select Collections on the rail.

  2. Select the folder-plus icon, Create a collection, at the top of the panel. With no collections yet, select New collection in the middle of the panel.

  3. Type a name and select OK.

You can also create a collection while saving a request: in the save dialog, type a name in Or create a new collection. See Save a request.

To bring in an existing collection, see Import from Postman and Import OpenAPI and HAR.

Work in the tree ​

ToDo this
Open or close a collection or folderClick its row
Open a requestClick it. It opens in a request tab, or switches to its tab if it is already open.
Find a requestType in Search requests. It matches the name, the URL and the folder, and opens matching folders.
See a request's saved examplesClick the number at the end of its row
Act on a rowOpen its … menu

Each request shows its method. DELETE is shortened to DEL. WebSocket, Socket.IO, MQTT, Server-Sent Events and gRPC requests show WS, SIO, MQTT, SSE and gRPC instead.

The number on a collection or folder row counts the requests inside, including subfolders.

Collection menu ​

ItemWhat it does
Run collectionSends every request in order and checks their tests. See Collection runner.
Load test collectionSimulates many users running these requests at once. See Load testing.
Import into collectionAdds requests from a file to this collection instead of creating a new one
Auth, scripts and docsOpens the collection settings
Export…Saves the collection as a Postman, OpenAPI or ApiWorkbench file. See Export.
Generate docs…Makes one HTML or Markdown page documenting every request. See Collection docs.
Version historyShows earlier versions to compare or restore
VariablesOpens the collection variables
RenameGives the collection a new name. Its requests stay as they are.
DeleteRemoves the collection and all its requests, after you confirm

Folder menu ​

ItemWhat it does
Run folderSends every request in this folder and its subfolders in order
Load test folderLoad tests this folder's requests
Import into folderAdds imported requests inside this folder
Auth, scripts and docsOpens the folder settings

Request menu ​

ItemWhat it does
DuplicateMakes a copy right below, named with (copy) at the end
Load testLoad tests this one request
DeleteRemoves the request from the collection right away, without asking

To rename a request, open it and click its name above the URL. See Rename a request.

Folders ​

Folders group the requests of a collection, and can be nested.

Folders arrive with imports. A Postman collection keeps its folders, and an OpenAPI import makes a folder per tag. Version 1.4.0 has no command to create an empty folder, or to rename, move or delete one.

What you can do with a folder:

  • Add to it. Import into folder places imported requests inside it. Duplicate on a request in the folder makes the copy in the same folder.
  • Keep requests in it. A request opened from a folder stays there when you save it.
  • Run it. Run folder and Load test folder work on the folder and its subfolders.
  • Give it shared settings. See below.

A folder is shown as long as it holds at least one request. When its last request is deleted, the folder disappears from the tree.

A request you save from a new tab goes to the top level of the collection.

Collection and folder settings ​

A collection and each folder can carry auth, scripts and a description that apply to everything inside.

  1. Open the … menu on the collection or folder.

  2. Select Auth, scripts and docs.

  3. Change the tabs you need, then select Done.

TabWhat it holds
AuthThe auth that requests set to Inherit from parent will use
ScriptsA Pre-request script and a Post-response script that run around every request inside
DocsA Description, shown at the top of this collection or folder in the exported documentation
VariablesCollection only: the collection's variables

Auth ​

Choose an Auth type and fill in its fields, exactly as on a request. A folder starts as Inherit from parent, which passes the question to the folder above or to the collection. A collection has no parent, so it does not offer that choice.

Requests use this auth only when their own Auth type is Inherit from parent. See Inherit auth from a folder or collection.

Scripts ​

  • The Pre-request script runs before each request inside is sent, ahead of the request's own pre-request script.
  • The Post-response script runs after each response, once the request's own tests have run.

Use them for work every request needs, such as setting a timestamp variable or checking that no response is a 500. See Scripts.

Docs ​

Write what the collection or folder is for and how to use it. The text is kept in workspace exports and appears in generated docs.

Version history ​

ApiWorkbench keeps earlier versions of each collection on your device. Use them to see what changed or to go back.

How snapshots are taken ​

  • A snapshot is taken automatically when the collection changes and is saved: a request saved, deleted or duplicated, a setting or variable changed, an import.
  • At most one snapshot is taken per minute for a collection. Changes that follow quickly are folded into the next one.
  • The latest 50 snapshots of each collection are kept. Older ones are dropped.

Compare a version with now ​

  1. Open the … menu on the collection and select Version history.

    The dialog lists snapshots with the time and a short summary of what changed. The one that matches the collection right now is marked current.

  2. Select a snapshot.

You see Changes since that time, in groups:

GroupMeaning
CollectionChanges to the collection itself: name, description, auth, scripts, variables, request order
Added sinceRequests that are not in the snapshot. Restoring removes them.
Removed sinceRequests the snapshot has that are gone now. Restoring brings them back.
Changed sinceRequests that differ, with the fields that changed: method, URL, headers, body and so on

Select All snapshots to go back to the list.

Restore a version ​

  1. Select the snapshot, then Restore this version. Or select the restore icon on its row in the list.

  2. Confirm with Restore.

The collection goes back to how it was at that time. Your current version is saved as a snapshot first, so you can return to it from the same list.

WARNING

Restoring replaces the whole collection, not one request. Requests added after the snapshot are removed. They stay in the snapshot taken right before the restore.

Request tabs that are already open keep their working copies, and saving one would write it over the restored version. Close the tabs of that collection's requests, then open the requests again from the tree.

Limits ​

  • History is local. It is not included in exports and does not travel to another computer.
  • Deleting a collection removes it from the tree. Export a collection first if you may want it again.
  • Environments and Globals have no version history.

Delete a collection ​

Open the … menu on the collection, select Delete, and confirm. The dialog says how many saved requests go with it.

DANGER

Deleting a collection removes all its requests. There is no undo in the app. Export it first if you are not sure.

Share and back up ​

Collections live in the app's data folder on your device. See Files and data. To back up, or to move collections to another computer, use Export and import the file there.

Next steps ​