orgx_spawn tool,
or connected clients — not by a direct REST insert. The v1 API controls a known
run and submits its receipt; the compatibility adapter provides API-key reads.
Naming crosswalk: this resource is
run on the compatibility
/api/entities surface. The v1 action route is the
canonical API-key write surface.Read
id, title, summary, status, initiative_id,
primary_agent_id, cost_cents, token_count, started_at,
completed_at, created_at, workspace_id, metadata. Add
include_relationships=true to embed run steps and run artifacts.
status values: draft, planned, awaiting_approval, running,
blocked, paused, completed, failed, cancelled, archived.
Control — POST /api/v1/runs/{runId}/actions/{action}
API-key authenticated. {action} must be one of:
Optional body fields:
checkpointId, reason.
POST /api/v1/lifecycle with level: "run" offers the same control verbs
(pause, resume, retry, cancel) plus retry, with
initiative-ownership checks.
Direct status writes are blocked
PATCH /api/entities on a run rejects status, started_at,
completed_at, and cancelled_at with 403 — run state changes must go
through the action routes above so control history stays accurate. Other run
fields (title, summary, metadata) are patchable.
All operations on this resource
Where the IDs come from
Related: blockers
Runs raise blockers (type: "blocker" on the compatibility surface) when they need
a human. Blocker rows are read-only through the compatibility REST adapter: they carry status
(open, resolved, dismissed), run_id, decision_id, and resolution
fields, and they close through their own resolve/dismiss lifecycle rather
than direct PATCH writes.
MCP equivalents
orgx_spawn guards, classifies, and dispatches new runs; orgx_act and the
MCP lifecycle tools pause and resume them; orgx_emit_activity,
orgx_request_attention, and orgx_emit_execution_graph stream run
telemetry that has no public REST write equivalent today.