Skip to content

API reference

Every route the Platform’s services answer, from the services’ own route definitions. The console’s entry point routes each path to its service, so a client calls one address: /api/auth, /api/users, /api/workspaces, /api/roles, /api/permissions and /api/scim belong to the identity service, /api/workbench, /api/logs, /api/assistant, /api/hsm, /api/vault and /api/captures to theirs, and the rest of /api to the api service. Send the session cookie the console holds, or an API token as Authorization: Bearer <token> (Settings, API tokens); what a route needs beyond signing in (a permission, an install admin) is in its words. Each install serves its live schema at /api/openapi.json.

Hosts, scenarios, runs, suites, schedules, environments, analytics, evidence and settings.

Method Path What it does
GET /api/meta What the UI needs before sign-in: the version, and whether this is the public demo.
GET /api/health Liveness and readiness of the api: its database and its bus connection.
GET /api/platform/services Every running instance of every service, as each reports itself on the bus every few seconds; one not heard from in a while is shown as gone.
Method Path What it does
GET /api/dashboard The overview: traffic, response codes and each host’s health over the last minutes (60 by default, up to a week).
Method Path What it does
GET /api/analytics Pass rates by day and by scenario, the flaky scenarios, the slowest steps and the builds, over the last days; for one scenario, one build or one environment when asked.
GET /api/analytics/failures Why runs failed over the last days: the failures clustered by scenario, step and cause, the ones still failing first, each with the runs before it read to place the regression between the last build that passed and the first that failed; for one scenario or one environment when asked.
GET /api/analytics/builds Two builds compared, scenario by scenario, from each one’s latest run of it: what the second fixed, what it broke, what stayed.
GET /api/analytics/environments Two environments compared, scenario by scenario, from each one’s latest run of it: what passes in one and not the other, what agrees, what only one has run.
Method Path What it does
GET /api/hosts Every simulated host, with its configuration and whether it’s running. Viewers don’t get cards’ PIN verification values.
POST /api/hosts Create a simulated host and start it (editor). It’s saved only once the simulator has it listening, so a host whose port is taken is refused rather than left behind. On an install where host changes need approval, the host is held as a proposal instead (202) until an admin approves it.
GET /api/hosts/{host_id} One simulated host, with its configuration and whether it’s running. Viewers don’t get cards’ PIN verification values.
PUT /api/hosts/{host_id} Change a simulated host (editor). The simulator applies it, in place when it can, and the host keeps its previous version if the change can’t be applied. Held as a proposal (202) where host changes need approval.
DELETE /api/hosts/{host_id} Stop a simulated host and delete it (editor). Held as a proposal (202) where host changes need approval.
POST /api/hosts/{host_id}/move Move a simulated host to another workspace (hosts.manage here and there, the design notes). It keeps its port and its id and keeps running; it’s checked against the new workspace as a new host would be (a free name, its dialect visible there, its HSM keys the new workspace’s or the install’s, the new workspace’s quotas), and both histories get a line.
POST /api/hosts/{host_id}/start Start a stopped simulated host (editor). Held as a proposal (202) where host changes need approval.
POST /api/hosts/{host_id}/stop Stop a simulated host, keeping its configuration (editor). Held as a proposal (202) where host changes need approval.
GET /api/hosts/{host_id}/activity The most recent requests the host handled, newest first. Card numbers are never stored.
POST /api/hosts/{host_id}/send Have the host send one of its messages to every connected system now, and say what each answered.
GET /api/hosts/{host_id}/issuer Accounts, cards, open holds and recent decisions of a stateful issuer host.
PUT /api/hosts/{host_id}/issuer/accounts/{account_id} Set an account’s balance and limits now. What’s held against it stays held.
PUT /api/hosts/{host_id}/issuer/cards Add a card or change its status, expiry or test PIN now. Its use today and PIN tries carry over.
POST /api/hosts/{host_id}/issuer/cards/clear-pin-tries Clear a card’s wrong PIN tries, unlocking a PIN that answered 75.
POST /api/hosts/{host_id}/issuer/cards/scripts Issuer scripts for a chip card’s next answer: MACed in the HSM for that transaction, sent with the answer, approved or not, then cleared. Needs a script key (MK-SMI) in the host’s chip checks.
POST /api/hosts/{host_id}/issuer/stand-in Stand-in on: approve within stand-in limits and queue advices. Off: apply them.
POST /api/hosts/{host_id}/issuer/reset Forget every balance change, hold and decision, and start again from the declared state.
Method Path What it does
GET /api/scenarios Every saved scenario this workspace reads, with its last run here: its own, and the ones other workspaces share, named with the workspace they come from; with tag, only the ones carrying it.
POST /api/scenarios Save a scenario from its YAML source (editor). It’s checked first, by the test-data guard too, and its name must be unique.
POST /api/scenarios/validate Check a scenario file without saving it. Used by the editor as you type.
GET /api/scenarios/{scenario_id} One saved scenario, with its source and its last run.
PUT /api/scenarios/{scenario_id} Replace a saved scenario’s source (scenarios.manage), checked as when it’s created. One shared from another workspace isn’t yours to change.
DELETE /api/scenarios/{scenario_id} Delete a saved scenario (scenarios.manage). Its runs are kept. One shared from another workspace isn’t yours to delete.
PUT /api/scenarios/{scenario_id}/sharing Share a scenario of this workspace with every workspace, or keep it to this one again (scenarios.manage, the design notes). Elsewhere it’s read and run against that workspace’s hosts, and copied; never changed.
POST /api/scenarios/{scenario_id}/copy Make a scenario of this workspace from one it reads (scenarios.manage): a shared scenario’s copy is this workspace’s own to change, under a free name when the name is taken here.
POST /api/scenarios/{scenario_id}/move Move a scenario to another workspace (scenarios.manage here and there, the design notes). It keeps its id, tags, requirements and sharing; it leaves this workspace’s suites and takes its schedules; its runs stay here; both histories get a line.
POST /api/scenarios/{scenario_id}/runs Start a run of a saved scenario, in an environment if the body names one. Poll GET /api/runs/{id} for the result.
GET /api/runs Runs, newest first: of one saved scenario, of one suite, in one environment, or all, up to limit (500 at most).
POST /api/runs Run a scenario file without saving it, for example from CI with the file in your repository.
POST /api/suites/{suite}/end End a suite: remove the state its runs shared (scope: suite) from every stateful issuer.
GET /api/runs/{run_id}/windows A load run’s seconds so far, from after on, for its live chart.
POST /api/runs/{run_id}/stop Stop a load run or a replay now; it reports what it measured, marked stopped.
POST /api/runs/{run_id}/debug Answer a run paused in the debugger: before a request goes out, send it as built or with fields changed, skip the step or stop the run; after a step, go on to the next, send the same step again or stop. Refused when the run isn’t paused.
GET /api/runs/{run_id}/earlier Earlier finished load runs of the same scenario, newest first, to compare a load run with.
GET /api/runs/{run_id} One run, with its result once it’s over: each step’s checks and masked messages, or a load run’s figures and verdict.
Method Path What it does
GET /api/changes Changes to hosts, scenarios, the data policy, dialects and tokens, newest first: who, when, what. Narrow to one kind or one object; page with before_id.
GET /api/changes/{change_id} One change with the thing as it was before and after, and the difference: a line diff for a scenario’s source, the fields that differ for everything else.
POST /api/changes/{change_id}/restore Put a host, a scenario, an environment or the data policy back to how it was before this change (editor). A deleted host, scenario or environment comes back; a host’s restored configuration is applied by the simulator like any change. The restore is itself a change in the history.
Method Path What it does
GET /api/settings/approvals Which kinds of change wait for an admin’s approval in this workspace.
PUT /api/settings/approvals Set which kinds of change wait for an admin (workspace admin). The change is in the history.
GET /api/proposals Changes held for approval, newest first; pending ones unless a status is asked for.
GET /api/proposals/{proposal_id} One proposal with what it asks for, and the difference it would make to the thing as it is now.
POST /api/proposals/{proposal_id}/approve Approve a pending proposal (admin) and make its change now, as the proposer asked. A change the simulator or the checks refuse leaves the proposal failed, with the reason, for the proposer to try again. An admin can’t approve their own proposal unless the settings allow it.
POST /api/proposals/{proposal_id}/reject Reject a pending proposal (admin), with a note for the proposer.
POST /api/proposals/{proposal_id}/withdraw Withdraw a pending proposal of your own (or any, with proposals.decide).
Method Path What it does
GET /api/coverage Message coverage: for a scenario (planned from its file, exercised by its runs), a suite run (by its key), or every run finished since a time; with the gaps against the target’s dialect and pack. With a capture, its traffic’s coverage too (counted by the capture proxy, against the same dialect and pack) and the differences: what the traffic carried that the runs in scope never exercised, and the other way round.
Method Path What it does
GET /api/environments Every environment, by name.
POST /api/environments Add an environment (editor). Its targets may name simulated hosts that don’t exist yet.
GET /api/environments/{environment_id} One environment: its targets, variables, and the simulated hosts it names that aren’t here.
PUT /api/environments/{environment_id} Change an environment (editor). Runs already queued keep what they were given.
DELETE /api/environments/{environment_id} Remove an environment (editor); refused while a schedule runs in it. Runs keep its name.
POST /api/environments/{environment_id}/move Move an environment to another workspace (environments.manage here and there, the design notes). It names hosts by name, and the names resolve where it is; both histories get a line.
POST /api/environments/{environment_id}/promote Carry the configuration of the simulated hosts this environment names to the hosts another environment names for the same target names, part by part (editor): a preview of what would change, or, with apply, the change itself. A destination host keeps its name, port, state and TLS, and what the source has none of. The hosts are changed one after another, and one the simulator refuses stops the rest. Held as proposals (202) where host changes need approval.
Method Path What it does
GET /api/evidence/public-key The install’s evidence public key (base64, Ed25519), for verifying packs offline.
GET /api/runs/{run_id}/evidence The run’s evidence packs, newest first.
POST /api/runs/{run_id}/evidence Make a signed evidence pack for a finished run (editor): its record and the environment, chained to the pack before.
GET /api/evidence/archive Whether packs are archived to a bucket (the install’s settings), and how the packs stand: archived, pending, failed.
GET /api/evidence/export A zip of the evidence packs for one run or for a suite run (by its key): the pack files, their pages, the install’s public key and a README on verifying them.
POST /api/evidence/{pack_id}/archive Copy a pack to the archive bucket now (admin), for one that failed or was made before the archive was set up. Refused when no archive is configured; a store that refuses or doesn’t answer is reported.
GET /api/evidence/{pack_id}.html The pack as a self-contained page for a reader, with the pack file embedded.
GET /api/evidence/{pack_id} The pack file: content, hashes, signature and public key, as the verification script reads it.
DELETE /api/evidence/{pack_id} Delete a pack (admin). The chain shows the gap: the next pack still names this one’s hash.
Method Path What it does
GET /api/library The scenario sets shipped with the Platform, each with the host it was proven against, its scenarios, and where it’s installed.
GET /api/library/{set_id}/scenarios/{file} One of a set’s scenarios as shipped, targeting the placeholder host.
POST /api/library/{set_id}/install Save a set’s scenarios for a simulated host (editor). Installing again brings scenarios the user hasn’t edited up to the shipped version and leaves edited ones alone, saying which.
Method Path What it does
GET /api/schedules Every schedule in the workspace, soonest first.
GET /api/scenarios/{scenario_id}/schedules A scenario’s schedules, oldest first.
POST /api/scenarios/{scenario_id}/schedules Add a schedule to a saved scenario; its next run is computed from now.
PUT /api/schedules/{schedule_id} Change a schedule’s name, expression, time zone or state.
DELETE /api/schedules/{schedule_id} Remove a schedule; the runs it started stay in the history.
GET /api/suites/{suite_id}/schedules A suite’s schedules, oldest first.
POST /api/suites/{suite_id}/schedules Add a schedule to a suite (editor); its next run is computed from now.
Method Path What it does
GET /api/suites Every suite, by name, with its last run.
POST /api/suites Create a suite (editor); its name must be unique.
GET /api/suites/{suite_id} One suite, with the scenarios it would run and its last run.
PUT /api/suites/{suite_id} Change a suite’s name, description, scenarios, tags or how it runs (editor).
DELETE /api/suites/{suite_id} Delete a suite (editor); its runs and their history stay.
GET /api/suites/{suite_id}/runs The suite’s runs, latest first.
POST /api/suites/{suite_id}/runs Run the suite now (editor): every scenario at once, or one after another, in an environment if the body names one.
GET /api/suite-runs/{suite_run_id} One suite run with its runs, for the console and the CI client to follow.
Method Path What it does
GET /api/requirements Every requirement, by key, with how many saved scenarios name it.
POST /api/requirements Add one requirement (editor); its key must be new.
PUT /api/requirements/{key} Change a requirement’s title or description (editor).
DELETE /api/requirements/{key} Remove a requirement (editor). Scenarios naming it keep the key; the matrix then shows it as undefined.
POST /api/requirements/import Import requirements from a tool’s export (editor): a JSON list of {key, title, description} or CSV with those columns. Existing keys are updated, new ones created.
GET /api/traceability The traceability matrix: every requirement, the scenarios proving it, and the verdict of each scenario’s latest run in the suite run named (by its key) or since a time.
GET /api/traceability.csv The matrix as CSV, one line per requirement and scenario.
Method Path What it does
GET /api/settings/data-policy The data policy. Everyone can read it, so they know which card numbers are allowed.
PUT /api/settings/data-policy Change the data policy (install admin): it is the install’s, not a workspace’s, and applies to running hosts and new runs at once.
POST /api/settings/data-policy/check How the current policy classifies some card numbers. Answers with masked numbers only.
Method Path What it does
GET /api/webhooks The workspace’s webhooks, with their last delivery (workspace admin).
POST /api/webhooks Add a webhook (admin): its URL is checked now, and its secret is kept but never shown again.
GET /api/webhooks/{webhook_id} One webhook (admin).
PUT /api/webhooks/{webhook_id} Change a webhook (admin); without a secret in the body, the old one stays.
DELETE /api/webhooks/{webhook_id} Remove a webhook and its deliveries (admin).
POST /api/webhooks/{webhook_id}/test Post a ping to the webhook now and report the attempt (admin).
GET /api/webhooks/{webhook_id}/deliveries A webhook’s latest deliveries (admin).
Method Path What it does
GET /api/tokens Your API tokens for this workspace (tokens.manage): their names, prefixes, scopes and when each was last used, never the tokens themselves.
POST /api/tokens Create an API token, for CI or an AI agent (tokens.manage). It acts in this workspace alone, with the permissions you pick from yours here, or every one you hold when you pick none; in use it never holds more than you do then. The token is in this answer only: it’s stored as a hash and can’t be shown again.
DELETE /api/tokens/{token_id} Revoke one of your API tokens (tokens.manage): it stops working at once.
Method Path What it does
GET /api/dialects The built-in dialects, then every stored dialect this workspace reads with its latest version: its own, and the ones other workspaces share, named with the workspace they come from.
POST /api/dialects Save a new dialect (version 1) or the next version of an existing one. Held as a proposal (202) where dialect changes need approval.
POST /api/dialects/validate Check a dialect without saving it: the editor calls this as you type.
POST /api/dialects/import/jpos Turn a jPOS packager into a dialect’s YAML, to review in the editor before saving.
GET /api/dialects/{slug} One dialect, built in, saved here or shared by another workspace, with each of its versions.
PUT /api/dialects/{slug}/sharing Share a dialect of this workspace with every workspace, or keep it to this one again (dialects.manage, the design notes). Every version goes together; elsewhere it’s read, extended and given to hosts, never changed.
GET /api/dialects/{slug}/versions/{version} One version of a dialect, with its source.
DELETE /api/dialects/{slug}/versions/{version} Delete a version nothing extends. Things bound to it would stop working, so check first. Held as a proposal (202) where dialect changes need approval.
GET /api/dialects/{slug}/versions/{version}/diff What changed from another dialect (the previous version, or the base) to this version.
GET /api/dialects/{slug}/versions/{version}/jpos The version as a jPOS GenericPackager, with notes on anything jPOS can’t write the same way.
Method Path What it does
GET /api/packs Every pack shipped with the Platform: what each covers and doesn’t, and its sources.
GET /api/packs/reasons What an answer can say happened, which rules and scenarios name instead of a code.
GET /api/packs/{pack_id} One pack in full: its code tables and network management messages, each citing its source.
POST /api/packs/{pack_id}/scenarios/{scenario_id}/setup Make one of a pack’s scenarios ready to run (editor): its host, on the first free port, unless a host of that name exists, and the scenario, unless one of that name is saved. Both go through the usual checks.
POST /api/packs/{pack_id}/readiness/setup Make a pack’s readiness programme ready to run (editor): its hosts and every scenario the programme’s cases name, unless they are there, and each case as a requirement of this workspace, unless it is defined.
GET /api/packs/{pack_id}/readiness A pack’s readiness programme case by case: what each expects, its public source, the scenarios proving it with their latest runs’ verdicts (in the suite run named, or since a time), and how many cases passed, failed, weren’t run or aren’t set up. Passing it is not a certification.
GET /api/packs/{pack_id}/readiness/export The readiness bundle: a zip of the report, the pack’s sources, the signed evidence pack and page of each case’s latest run (made now for a run without one, when the caller may make evidence) and the install’s public key, with a README on verifying it. Refused until the programme has a run to report.
Method Path What it does
GET /api/chip-cards The Platform’s own chip cards, with the counter each has reached.
PUT /api/chip-cards/{pan} Keep a chip card, or change one (editor). The test-data guard checks its number, and its MK-AC has to be in the HSM. Its counter only moves forward: a card whose counter went back would replay cryptograms its issuer has seen.
DELETE /api/chip-cards/{pan} Forget a chip card (editor). Its counter goes with it.
Method Path What it does
GET /api/tour Whether the gateway and switch answer, which issuers the switch reaches, and the example scenario.
POST /api/tour/setup Create the sample issuers on the ports the switch routes to, where free, and save its example scenario.
POST /api/tour/payments A payment through the reference gateway and switch. Returns the gateway’s answer.
Method Path What it does
POST /api/visits The console reports a page it showed. Recorded only when this install tracks visitors.
GET /api/visitors Everyone who signed in, most recently seen first, with what they did.
GET /api/visitors/{user_id}/events One visitor’s pages and actions, newest first.
DELETE /api/visitors/{user_id} Delete everything recorded about one visitor (a request to be forgotten).
GET /api/visitors.csv Every visitor, as a spreadsheet for following up.

Sign-in links, sessions, single sign-on, users, roles and SCIM provisioning.

Method Path What it does
GET /api/auth/config What the sign-in page needs: whether anyone can sign up, the Turnstile site key, and the single sign-on provider when there is one.
GET /api/auth/oidc/start Send the browser to the provider, with the state, nonce and PKCE verifier in a signed cookie.
GET /api/auth/oidc/callback Back from the provider: finish the sign-in and go to the console, or back to the sign-in page with the reason.
POST /api/auth/link Email a one-time sign-in link. The answer is the same whether or not the address has an account.
POST /api/auth/verify Redeem a sign-in link and start a session.
GET /api/auth/me Who is signed in, their install role, the workspaces they may act in and their role in each.
PUT /api/auth/me/workspace The workspace this user’s requests act in when they don’t name one.
POST /api/auth/logout Sign out of this browser: its session cookie is cleared.
POST /api/auth/logout-everywhere End every session of this user, on every device.
Method Path What it does
GET /api/users Every account, with its role and whether it’s active (admin).
POST /api/users Invite someone by email with a role. They get a sign-in link.
PATCH /api/users/{user_id} Change a user’s role, or deactivate or reactivate them. Deactivating ends their sessions.
POST /api/users/{user_id}/sign-in-link Email a user a fresh sign-in link, for example when an invitation expired.
GET /api/users/audit Recent sign-ins, invitations and role changes, newest first.
GET /api/users/audit.jsonl The audit log as JSON Lines, oldest first, for a period: what a pull-based collector takes. since and until are ISO 8601 times.
Method Path What it does
GET /api/workspaces The workspaces the caller may act in, with their role in each (every one, for an install admin); with include_archived, an install admin sees the archived ones too, to restore them.
POST /api/workspaces Make a workspace (install admin). The admin who makes it is its first member, as an admin.
POST /api/workspaces/{workspace_id}/archive Archive a workspace (install admin, the design notes): it keeps everything it has, and nothing in it acts until it’s restored: its members and tokens are refused, its hosts stop, its capture points close, its schedules wait. The first workspace stays.
POST /api/workspaces/{workspace_id}/restore Restore an archived workspace (install admin): its members act again, and the hosts and capture points that were enabled come back.
PATCH /api/workspaces/{workspace_id} Rename a workspace (its admins: the permission workspace.manage).
PUT /api/workspaces/{workspace_id}/quotas Set what the install allows a workspace (install admin, the design notes): simulated hosts, capture points, the port range its hosts and capture points use, the highest load or replay rate. A quota left out means the install’s own limit. The api and the capture proxy apply them from the next change on.
GET /api/workspaces/{workspace_id}/members Who belongs to a workspace and as what (its members).
POST /api/workspaces/{workspace_id}/members Add someone with an account on this install to a workspace by email, with a role (the workspace’s admins: the permission members.manage). The role is any the install has, built in or its own.
PUT /api/workspaces/{workspace_id}/members/{user_id} Add a user to a workspace with a role, or change the role they have there (the workspace’s admins: the permission members.manage).
DELETE /api/workspaces/{workspace_id}/members/{user_id} Take a user out of a workspace (its admins: the permission members.manage). Their sessions keep working elsewhere.
Method Path What it does
GET /api/roles Every role on this install: the built-in three first, then the install’s own by name, each with how many memberships name it.
POST /api/roles Define a role from permissions (install admin). Its slug is taken once; the built-in names are reserved.
PATCH /api/roles/{slug} Change a role’s name, description or permissions (install admin). Everyone who holds it has the new permissions on their next request; the built-in roles can’t be changed.
DELETE /api/roles/{slug} Remove a role nobody holds (install admin). One that members hold stays until they’re given another; the built-in roles stay.
GET /api/permissions The catalogue of permissions a role can hold, grouped by area, in the order the console shows them.
Method Path What it does
GET /api/scim/v2/ServiceProviderConfig What this SCIM service supports: patching and filtering, no bulk, a bearer token.
GET /api/scim/v2/ResourceTypes The one resource type here: User.
GET /api/scim/v2/Schemas The User schema as the Platform keeps it: userName, externalId, active, and the read-only role.
GET /api/scim/v2/Users Users, with userName, externalId or id equality filters and paging.
POST /api/scim/v2/Users Create a user with the default role; 409 when the address already has an account.
GET /api/scim/v2/Users/{user_id} One user by id.
PUT /api/scim/v2/Users/{user_id} Replace the user’s userName, externalId and active state, as PUT means.
PATCH /api/scim/v2/Users/{user_id} Operations as Okta sends them (a value object, no path) and as Entra ID sends them (a path, capitalised op, booleans as strings).
DELETE /api/scim/v2/Users/{user_id} Deprovisioning deactivates the account: the audit trail keeps who they were.

Inspect, build, compare and convert messages, with no state kept.

Method Path What it does
GET /api/workbench/health Liveness and readiness: the service is up and connected to the bus (for session checks).
GET /api/workbench/samples Ready-made messages: requests, responses, a reversal, captures in several wire formats.
GET /api/workbench/fields The data elements of a version or a dialect, with a network’s variations: name, format and length.
POST /api/workbench/inspect Decode a message and explain it: layout, fields and meanings, EMV tags, validation.
POST /api/workbench/build Build a message from field values, in any wire format or dialect and framing, and inspect it.
POST /api/workbench/respond Draft the response a simulated host would send to a request, or a reversal of it.
POST /api/workbench/convert Convert a message to another ISO 8583 version, listing fields that can’t be carried over.
POST /api/workbench/compare Compare two messages field by field, for example a request and its response.
GET /api/workbench/crypto The crypto calculators the workbench offers, with each one’s inputs.
POST /api/workbench/crypto/{calculator_id} Run a calculator on the given inputs. Nothing is stored or logged, and a card number that might be real is reported, as the data policy says.

Every exchange the simulated hosts handled, masked.

Method Path What it does
GET /api/logs/health Whether the message log is up, its database reachable and the message bus connected.
GET /api/logs/messages Newest first. Filter by host, MTI, STAN, response code, outcome and time; page with before_id.
GET /api/logs/messages/{entry_id} One exchange from the message log, masked: a request a simulated host handled and its answer. Entries past their retention period are gone.

Plain-English explanations from masked data, with the model the install chose.

Method Path What it does
GET /api/assistant/health Whether the assistant is up, connected to the message bus and to its database.
GET /api/assistant/status Whether the AI features are available to the caller in their workspace, on which model, and why not when they aren’t. Never includes a key.
POST /api/assistant/explain/message Explain a message in plain English. It’s decoded by the workbench; card data is masked.
POST /api/assistant/explain/run Explain why a scenario run didn’t pass and what to change.
POST /api/assistant/generate/scenario Write a scenario file from a description, for review in the editor: never saved, never run. The file is checked against the scenario format, the target and its data elements, and the test-data guard; what the checks find is returned with it. A specification excerpt, when given, goes to the model as reference material; a capture, when named, goes as a summary of its traffic (masked) with a few exchanges in full.
GET /api/assistant/policy The install’s AI policy (install admin): the master switch, each feature’s switch, the default model and the models the install offers.
PUT /api/assistant/policy Set the install’s AI policy (install admin): which features run for everyone, and the default model, by its key. The change is recorded with the policy before and after.
GET /api/assistant/workspaces/{workspace_id}/policy A workspace’s AI policy (its admins, or an install admin): its switches and model, what applies to its members as a result, its quotas and what it has used today.
PUT /api/assistant/workspaces/{workspace_id}/policy Set a workspace’s AI policy (its admins, or an install admin): a feature off for its members, and the model they use, by its key. A feature the install has off stays off whatever the workspace says.
GET /api/assistant/policy/changes Who changed the AI policies and how, newest first. An install admin sees every workspace’s; a workspace’s admins see their own.
GET /api/assistant/audit The AI audit, newest first: who sent what to which model, in which workspace, and what came of it. With totals for the period by feature, person, outcome and workspace. Install admins read everyone’s; a workspace’s admins read their workspace’s.
GET /api/assistant/audit.jsonl The AI audit as JSON Lines, oldest first, every row complete with the prompt and the answer: for a review or a collector. The same filters as the page.
GET /api/assistant/audit/{request_id} One recorded request in full: the system prompt, what went to the model (masked) and what came back.
POST /api/assistant/chat One turn of a conversation: the person’s message, or their decision on a proposal.
GET /api/assistant/conversations The person’s conversations in this workspace, latest first.
GET /api/assistant/conversations/{conversation_id} A conversation with every turn and proposal.
DELETE /api/assistant/conversations/{conversation_id} Delete a conversation and its turns and proposals. The audit keeps its model calls.
POST /api/assistant/triage Why a cluster of runs fails: the likely causes in order, each with the evidence it rests on and what to check next. The assistant reads the cluster, the latest failed run, the scenario, the host’s rules and the changes since the last passing run as the caller; nothing is taken from the browser but the cluster’s id.

The HSM simulator’s keys, status and faults; host commands go to its own port.

Method Path What it does
GET /api/hsm/health Whether the HSM simulator is up, listening for host commands and its database reachable, and the kind of key that protects its LMK (never that key’s id).
GET /api/hsm/status How to connect a system: the command port, TLS, the header length and key type table, and the LMK in use with its check value.
GET /api/hsm/activity The latest host commands, newest first: when, from where, the command and its answer, never keys, PIN blocks or card numbers.
GET /api/hsm/keys The key store: each key under the LMK with its check value and version, and its previous versions until they retire.
POST /api/hsm/keys Add a key (editor): generated, formed from clear components, or imported from a TR-31 key block under a stored ZMK or TMK. It’s kept under the LMK; the clear key isn’t kept.
POST /api/hsm/keys/{name}/rotate A new key under the name; the old one verifies what was made under it until it retires.
DELETE /api/hsm/keys/{name}/versions/{version} Retire a previous version now, before its date: it verifies nothing from here on.
POST /api/hsm/keys/{name}/export The current key, to give a system that shares it, after a rotation.
DELETE /api/hsm/keys/{name} Delete a key and all its versions from the store (editor). Systems holding it under the LMK keep working.
PUT /api/hsm/lmk Replace the LMK (admin), confirming the current one’s check value. Every stored key is re-encrypted under the new one; keys systems hold under the old one stop working.
GET /api/hsm/faults The failure modes: how the HSM misbehaves on purpose, for which commands, and how often.
PUT /api/hsm/faults Set the failure modes (editor). They apply to every system connected to the HSM, from the next command.
GET /api/hsm/events The audit trail (admin): LMK and key changes, uses of keys for test PINs, rotations and exports, never key material.

The test CA, certificates and keys, every use audited.

Method Path What it does
GET /api/vault/health Whether the vault is up and its database reachable, its version, and the kind of key that protects its keys (never that key’s id).
GET /api/vault/items The CAs (the install’s, then the untrusted one) and the workspace’s certificates, newest first. Never a private key.
GET /api/vault/items/{item_id} One certificate, key or CA in the vault: its details and whether it’s revoked, never a private key.
DELETE /api/vault/items/{item_id} Delete an item from the vault (admin).
GET /api/vault/ca.pem The install CA’s certificate, for systems that must trust what it issues.
GET /api/vault/crl.pem The install CA’s current revocation list, for systems that check client certificates.
POST /api/vault/certificates Issue a certificate from the install CA, with a new key pair the vault keeps.
POST /api/vault/certificates/sign Certify a signing request from your system: it keeps its private key.
POST /api/vault/certificates/import Take in a test certificate issued elsewhere, and optionally its key.
POST /api/vault/items/{item_id}/download The certificate with its generated key, once, to configure the system that presents it.
POST /api/vault/items/{item_id}/revoke Revoke a certificate the install CA issued, for good. Hosts refuse it from their next handshake.
GET /api/vault/deny The deny list (admin): fingerprints and check values of production certificates and keys the vault refuses to hold.
POST /api/vault/deny Refuse a production certificate or key: the vault then never takes it in.
DELETE /api/vault/deny/{entry_id} Take an entry off the deny list (admin).
GET /api/vault/events The audit trail: every change and every use, newest first.

Capture points between two of your systems, and the captures they record.

Method Path What it does
GET /api/captures/health Whether the proxy is up and its database reachable, with how many capture points listen and record.
GET /api/captures/points Every capture point: where it listens, what it forwards to, and how it’s doing.
POST /api/captures/points Create a capture point (editor), listening at once unless it’s created disabled.
PUT /api/captures/points/{point_id} Change a capture point (editor). It listens again with the change, which closes its connections; a point that’s recording has to stop its capture first.
DELETE /api/captures/points/{point_id} Stop a capture point and delete it (editor). Its captures are kept.
POST /api/captures/points/{point_id}/start Start listening (editor).
POST /api/captures/points/{point_id}/stop Stop listening (editor), closing its connections and ending its capture.
POST /api/captures/points/{point_id}/captures Start recording on a capture point (editor). Its connections carry on as they are.
POST /api/captures/import Import a pcap or pcapng file as a capture (editor): the file is the request’s body.
GET /api/captures Captures, newest first, with their counts and how each ended.
GET /api/captures/{capture_id} One capture, with its counts and how it ended.
DELETE /api/captures/{capture_id} Delete a capture and everything it recorded (editor).
POST /api/captures/{capture_id}/stop Stop recording (editor). What it recorded is kept.
GET /api/captures/{capture_id}/frames A capture’s frames in order, masked as the message log is.
POST /api/captures/{capture_id}/scenario A capture’s exchanges as a scenario file (editor): each request a send step with its fields, each answer an expect on its MTI, response code and the fields chosen. Up to 500 requests, in the order they were recorded. The file holds the requests complete, as a scenario does.