API reference

Orchestra's desktop app exposes a Tauri command surface — the React renderer invokes it via invoke("name", args). The relay additionally exposes a small HTTP API for status, presence, and the exec bridge.

Relay HTTP

GET /health

Plain 200 OK if the service is up. Used by load balancers and the status page.

GET /status

JSON snapshot of relay health: connected agents, connected desktops, DB latency, uptime. Public — no auth.

curl https://command.orchhq.com/status

GET /presence/agents

List of currently-connected agent installs with last-seen timestamps. Used by the desktop's presence poller to flip server state.

POST /exec

v1 HTTP bridge for the desktop to send a shell command to an agent. Body: {agent_install_id, cmd, timeout_s}. Returns {cmd_id, exit_code, stdout, stderr}. v2 will move this onto the E2EE envelope path.

Desktop Tauri commands

All commands are async, take a typed argument object, return Result<T, String>. Listed grouped by area.

Lifecycle

get_install_idHex ID of this install.
get_install_statusTenant count, unlocked count, install age.

Tenants

list_tenantsArray of {id, name, unlocked, accent}.
create_tenantCreate + return id.
unlock_tenantDecrypt with passphrase (+ optional remember).
lock_tenantDrop engine + zero passphrase.
delete_tenantPermanent. Drops DB file.

Workflows

list_workflowsWorkflows for the active tenant.
create_workflowInsert + version 1 + validate DAG.
run_workflowStart a run; returns run_id immediately, runs async.
list_workflow_runsRecent 200 runs.
approve_nodeResolve a paused ApprovalGate (approve|deny).
list_pending_approvalsCurrently-paused approval keys.
list_workflow_templatesBuilt-in template library.
clone_templateMaterialize a template for a chosen server.

Claude

chat_to_dagUser intent → structured DAG JSON.
diagnose_failureReturns the persisted diagnosis blob or runs a live diagnosis.
server_chatPer-server Claude conversation with telemetry + run context.
estimate_costQuick estimate before running.

Audit + compliance

list_auditRecent audit rows.
export_audit_jsonlSIEM-shaped JSONL to a file path.
validate_audit_chainHash-chain integrity walk.
ship_audit_to_siemPOST JSONL to an HTTP endpoint with optional bearer.
compliance_snapshotSingle-screen posture snapshot.

Knowledge

add_knowledgeInsert a scoped operator fact.
list_knowledgeFilter by scope_kind + scope_id.
delete_knowledgeRemove by id.

Integrations

slack_postPost a message via incoming webhook.
github_create_issueCreate an issue in a repo.
aws_ssm_send_commandSSM RunShellScript with stashed creds.
datadog_post_metricSingle-point Datadog series.
pagerduty_triggerEvents v2 trigger.
linear_create_issueGraphQL issueCreate mutation.
gitlab_create_issueGitLab REST issues.
cloudflare_purge_cacheZone-scoped purge.
set_integration_secret / has_integration_secretStash + check.