2.8 API client
Translated from French; the French version prevails if the two differ.
In short. The HexaConnect API client sends REST, GraphQL, WebSocket, SSE and gRPC requests, organizes them in Postman-compatible collections, manages environments and variables, runs common Postman scripts and keeps a history. What sets it apart: a request can go out through a saved SSH session, to reach an API that is only accessible behind a server. Collections and environments are readable files that you can put in a git repository if you wish; no secret is written to them.
Where to find it
- “API” in the sidebar: full-screen client, with collections, history and environments.
- You create a request with the “+” of the API view tabs (“New request” has left the Session view toolbar). The “Split” button docks the request to the right of the terminal or explorer; the dock button in the header brings it back to full screen.
Layout
- Left column with Collections / Environments / History tabs, each with its filter and its “+”; collection folders expand and collapse; the Environments tab selects the environment and shows its variables, with secrets masked.
- Environment selector in the view header. Closable request tabs, with “+” at the end. A single method + URL bar, Send and Save; below the bar, the URL resolved with its variables.
- Sections: Params, Headers, Body, Authentication, separate Scripts (pre-request) and Tests (post-response), Settings, Extract, Code.
- Response in a separate pane: colored status badge, duration, size, route (SSH session or proxy); Body / Headers / Tests / Timeline tabs (Cookies, Certificate, Console when there are any); test column on the right.
HTTP requests
- Method, URL, params kept in sync with the URL (key / value table with checkboxes; an unchecked param stays in the table but isn’t saved with the request), Description column (never sent, kept by name with the request, read from and written to Postman
queryentries), path variables (/clients/:id), headers. - Body: JSON, XML, text, URL-encoded form, multipart (with files), binary, GraphQL. Editor with syntax highlighting.
- Per-request settings: timeout, follow redirects, TLS verification, “Route through” an SSH session.
- Send with Enter in the URL or Ctrl+Enter in the body. Request tabs are kept from one launch to the next; “Save” (Ctrl+S) updates the request in its collection; a modified tab is marked “•”.
Response
- Status, broken-down duration (DNS, connection, TLS, first byte, download; reused connection flagged), size.
- Pretty body (indented, highlighted JSON and XML) or raw, search, copy, save to a file; binary body detected; beyond 10 MiB, display is truncated and the full body can be saved.
- Headers, cookies set, server certificate. A rejected certificate is explained (name, chain, expiry).
- The last result of a collection request is shown on hover in the tree.
- “View in proxy”: when the request went through the entry port of a running capture proxy, the route becomes “via capture proxy “name”” and the button opens the Proxy view on that proxy, filtered on the request path.
Requests through SSH
The “Route through” setting makes the request go out from a saved SSH session (and its jump hosts): HexaConnect keeps a carrier connection and opens a short-lived forwarding per HTTP connection. It also applies to WebSocket, SSE and gRPC. Without this setting, the request follows the API client’s outbound proxy (see 2.4 Tunnels, jump hosts and outbound proxy).
Authentication
| Type | Details |
|---|---|
| Inherited | Request → folder → collection, as in Postman. |
| Basic, Bearer | Secret stored in the Windows vault or referenced by a {{variable}}. |
| API key | In a header or as a param. |
| OAuth 2.0 | Client credentials; authorization code with PKCE (“Get token” opens the browser, callback received on 127.0.0.1, state verified); client authenticated with Basic or in the body; scope, audience. Token kept encrypted, refreshed automatically, never displayed; “Forget token”. The “implicit” and “password” flows aren’t supported. |
| Digest | MD5, SHA-256. |
| NTLM / Negotiate | Identity of the Windows session when the user is empty. |
| AWS Signature v4 | Region, service; session token through a secret variable only. |
| Client certificate (mTLS) | Windows personal store (by thumbprint), .pfx / .p12 with password through a variable, or .pem + .key. |
Collections
- Nested folders, description, inherited authentication and variables; search, new request, new folder, rename, duplicate, move up / down, move, delete (a collection by retyping its name).
- Stored as readable files in the workspace (by default the “api” folder of the data folder): one folder per collection, one JSON file per request,
environments\*.json,globals.json. Only modified files are rewritten; “Reload the workspace” picks up changes made elsewhere (for example after agit pull).
Environments and variables
- Environments with a color, selected above the tabs and kept from one launch to the next; duplicate, delete.
- Protected environment: banner, and confirmation before any POST, PUT, PATCH, DELETE or gRPC call (the confirmation names “the gRPC call” and its method).
{{name}}variables: global, environment, collection and local (scripts); priority local > environment > collection > globals, as in Postman.- Initial value (written to the files, shareable) and current value (this computer only); secret type: masked, stored in the Windows vault, never written to a file or to the history.
- Postman dynamic variables:
{{$guid}},{{$timestamp}},{{$isoTimestamp}},{{$randomInt}},{{$randomUUID}}… - Hovering over the URL: value and scope of each variable; orange border if one is unknown.
- Extract: JSONPath, header, regular expression or status rules that write a variable after sending (sign-in token for the following requests), with a test against the last response.
- Cookie jar per environment, viewable and clearable, kept for the duration of the session and never written to disk.
Scripts (Postman-compatible)
- Pre-request and post-response scripts of the collection, then folders, then the request, in Postman order (“Scripts” section, JavaScript editor).
- Subset of the
pmAPI:pm.variables,pm.environment,pm.collectionVariables,pm.globals(get, set, unset, has, toObject, replaceIn);pm.request(modifiable before sending);pm.response(code, status, headers,json(),text(),to.have.status…);pm.testandpm.expect(common assertions);console.log. - Response: “Tests” (passed / failed with the reason) and “Console” tabs; secret values are masked there.
- Sandbox: no access to disk, network or system; stopped beyond 3 seconds, 32 MB or 5 million instructions.
- Not supported (explicit error, never a silent failure):
pm.sendRequest,require,postman.*, visualizer.
Collection runner
- “Run collection” at the bottom of the column, or “Run” on a collection or folder: requests run one after another in tree order, with their scripts, tests and extractions (an extracted token is used by the following ones).
- Each request is shown as it runs, then the summary of passes and failures; an unexpected error is noted on its step, and the run is never left stuck “in progress”. It can be stopped.
- A single confirmation on a protected environment; the environment selected at the start applies to the whole run. WebSockets are skipped.
GraphQL
- “GraphQL” body: document and variables (JSON,
{{variables}}accepted); several operations per document, you choose the one to run. - “Load schema” by introspection (with the request’s authentication), schema cached; field completion by type, required arguments inserted, deprecated fields struck through; schema explorer (queries, mutations, subscriptions).
- Loading a schema from a file isn’t offered.
WebSocket and SSE
- A
ws://orwss://URL turns the tab into a connection (“Connect” / “Disconnect”): same authentication, cookies, client certificate, routing through SSH and TLS verification as for HTTP; subprotocols; text or binary (base64) messages saved with the request; closure explained (code and reason). - An empty message isn’t sent: the status bar says so.
- A
text/event-stream(SSE) response is read as it arrives, until “Stop stream” or the end from the server. - Filterable, timestamped feed of messages and events (last 5,000 kept).
- No automatic reconnection; Socket.IO isn’t supported.
gRPC
- A
grpc://host:port(HTTP/2 without TLS) orgrpcs://host:portURL turns the tab into a gRPC call (“Call” button). - Schema read through server reflection or from a
.protofile (imports from the same folder, common Google types built in). - Message in JSON, “Insert an example” generated from the schema; unary calls, server streaming, client streaming and bidirectional (messages sent in one batch, then responses read).
- Headers and authentication sent as metadata; gRPC status and trailers displayed.
Postman compatibility and other formats
| Format | Import | Export |
|---|---|---|
| Postman collection v2.0 / v2.1 | Yes | v2.1, without secrets |
| Postman environment and global variables, full export archive | Yes | Environment: initial values only |
| Postman collection 3.0 (YAML) | No (planned) | No |
| OpenAPI 3.x, Swagger 2 (JSON or YAML) | Yes (collection by tag, {{baseUrl}}, body examples) | — |
| HAR | Yes (Cookie and Authorization removed) | From the capture proxy |
| Insomnia v4 | Yes | — |
| cURL | Yes (button, or command pasted into the URL) | Yes |
- Lossless round trip: what HexaConnect doesn’t interpret (unknown fields, response examples…) is kept and written back as is on export. An import report lists what is taken over, converted, kept without being run, or ignored.
- Linked folder (Postman) (Settings → API): a folder of exported Postman collections and environments, read and written back in their format, to work with colleagues who stayed on Postman. A secret entered in HexaConnect is never written there.
- Code generation (“Code” section): cURL, PowerShell (
Invoke-RestMethod), C# (HttpClient), Python (requests), JavaScript (fetch).
History
- Each send is recorded without its secrets (resolved request, status, duration); search, reopen in a tab, save to a collection.
- Automatic purge after 30 days; “Clear” erases everything.
Plans
Required plan: Discovery. The API client is complete in the free plan, with no limit on collections or environments.