# The workbench

> The sidebar, tabs, request editor, response viewer and history, and how to arrange, theme and import into them.

Canonical: https://porticol.app/docs/workbench

[View as Markdown](https://porticol.app/docs/workbench.md)

Commands: `Toggle sidebar`, `Toggle layout`, `Maximise`, `Import`, `Theme`, `Show history`, `Open selected`, `Collection settings`, `New request here`, `New folder here`, `Rename selected`, `Duplicate selected`, `Move selected`, `Pin selected`, `Favourite selected`, `Delete selected`, `Shortcut help`, `Settings network`, `Settings appearance`, `Settings data`, `Settings privacy`, `Check updates` · Settings: `General`, `Appearance`, `Keyboard`

## The sidebar

The sidebar has a section each for collections, environments, history and API documents, and on the desktop for mock servers, runs and flows. Mod+\\, or **Toggle sidebar** in the command palette, hides and shows it.

The list under those sections follows the one chosen: the collections in a tree, or that section's own list. Choosing a section switches the list; only the document you open from it becomes a tab.

Collections hold folders and requests in a tree. Hover a row, or move focus to it, to show its menu and the button that adds a request or a folder. F2 renames the row, Mod+D duplicates it, Mod+Backspace deletes it and Mod+R runs a collection or folder. Shift-click marks a range of rows and Mod-click adds one, so several can be moved or deleted at once. A click opens a request in a preview tab and a folder's settings in a document; the chevron beside the name expands it.

The filter field above the tree hides rows that do not match. Collection and folder settings are one click away: the gear on the row opens the document, which starts on its overview. Deleting a request, a folder or a whole collection is undoable for ten seconds from the toast or Mod+Z.

The palette offers the selected row's operations too: open it, open its settings, add a request or folder inside it, rename, duplicate, move, pin or favourite it, and delete it. Typing `>` narrows to commands, `/` to requests, `@` to environments, `#` to history and `?` to help.

**Run in CI…** in a collection's menu gives the steps that run it on a pipeline: export it as a Porticol file and copy the command that runs that file, or copy the command that runs the copy the workspace syncs to the server, with an API token in `PORTICOL_TOKEN`.

## Tabs

Each open request has its own tab and its own draft until you save it. Open tabs and their drafts are kept when you quit and are there again when Porticol starts. When there are more tabs than fit, the list at the end of the tab strip finds one by name.

## The request editor

A request has sections for its query parameters, headers, body, auth, scripts, settings and examples. A body is JSON, text, a form or multipart. Variable references such as `{{base_url}}` are highlighted wherever they are typed.

Choose any HTTP method, or type one of your own. Rename a request from its name above the URL.

## The response

The response shows the status, time and size, with tabs for:

- the body, pretty or raw
- headers and trailers
- cookies the response set
- the results of test scripts and their console output
- a timeline of each hop, with redirects, retries and the time each phase took
- the TLS certificate chain
- the bytes on the wire, when they were recorded

A body over 8 MB is written to a file instead of held in memory, and opens in a paged viewer that searches all of it. **Save to file** copies it into your downloads folder. **Save as example** keeps a response with the request, as an example a mock server can answer with.

Mod+Alt+L, or **Toggle response layout**, moves the response between beside the request and below it. Mod+Shift+M, or **Maximise response**, gives it the whole window and back.

## History

Every send is kept in history with its status and duration. Open the History section, or choose **Show history** in the palette, to filter by text, status class or host. Opening an entry opens its request in a new tab.

## Import

**Import…** in the palette reads Postman collections and environments, Insomnia v4 and v5 exports, Bruno collections (the folder or its `.bru` files), Thunder Client and Hoppscotch exports, `.http` and `.rest` files, OpenAPI 3, HAR and cURL commands. Choose several files at once, and import them into a new collection or into an existing one, where each file becomes a folder. A report shows what will be created, and anything that couldn't be brought across, before anything is written. WebSocket requests come across from Postman and Insomnia with their headers and saved messages. Credential headers in HAR, Insomnia and cURL imports become variables rather than plain text.

## Settings for the workbench

**General** sets where the response sits, right or bottom, and how long history is kept: how many sends, and for how many days. On the desktop it also has the update channel, Stable or Beta, and **Check now**.

**Appearance** sets the theme (System, Light or Dark) and the text size. The palette's **Switch theme** command changes the theme without opening Settings.

**Keyboard** lists every shortcut. Search for an action, choose its record button and press the new keys, or Esc to keep the old ones. A shortcut another action already uses says which. **Reset all** puts every shortcut back.
