Skip to main content

Mission control API

Mission control provides a real-time view of your agent fleet. Use these endpoints to visualize agent relationships, trace execution activity, attribute costs per agent, and track talent bookings.
All four mission control endpoints require bearer token (API key) authentication and accept a userId query parameter. The backend returns 401 for unauthenticated requests. The web proxy uses session authentication and resolves the user ID from the session before forwarding to these backend endpoints — the web proxy layer returns safe default responses (empty data with a 200 status) for unauthenticated requests instead of forwarding the 401.

Fleet graph

GET /api/mission-control/fleet/graph
Returns a constellation graph of your agent fleet as a set of nodes and edges. Each node represents an agent with a role and positional data for graph layout. Edges use from/to fields with a strength value indicating relationship weight.

Authentication

Requires bearer token authentication.

Query parameters

ParameterTypeRequiredDescription
userIdnumberYesThe user ID to fetch the fleet graph for

Response

{
  "nodes": [
    {
      "id": "tempo-x402",
      "name": "tempo-x402",
      "role": "orchestrator",
      "status": "active",
      "x": 400,
      "y": 300,
      "load": 72,
      "memory": 58,
      "fitness": 85,
      "walletAddress": "0x1234...abcd",
      "children": 2,
      "endpoints": 3,
      "cycles": 1042,
      "regime": "explore",
      "freeEnergy": 0.34,
      "url": "https://tempo-x402-production.up.railway.app"
    },
    {
      "id": "a1b2c3d4",
      "name": "Clone-a1b2c3d4",
      "role": "worker",
      "status": "active",
      "x": 200,
      "y": 450,
      "load": 30,
      "memory": 20,
      "fitness": 40,
      "walletAddress": "0xabcd...1234"
    }
  ],
  "edges": [
    {
      "id": "e-tempo-x402-a1b2c3d4",
      "from": "tempo-x402",
      "to": "a1b2c3d4",
      "strength": 0.6
    }
  ],
  "timestamp": "2026-03-22T12:00:00.000Z",
  "source": "soul",
  "nodeCount": 1
}
When no souls are reachable, the response uses the fallback shape with minimal node data:
{
  "nodes": [
    {
      "id": "atlas",
      "name": "Atlas",
      "role": "orchestrator",
      "status": "offline",
      "x": 400,
      "y": 300,
      "load": 0,
      "memory": 0
    }
  ],
  "edges": [],
  "timestamp": "2026-03-22T12:00:00.000Z",
  "source": "fallback"
}
When the request is unauthenticated (no valid session), the web proxy returns a default response instead of forwarding the backend 401 error:
{
  "nodes": [
    {
      "id": "atlas",
      "name": "Atlas",
      "role": "orchestrator",
      "status": "offline",
      "x": 400,
      "y": 300,
      "load": 0,
      "memory": 0
    }
  ],
  "edges": [],
  "timestamp": "2026-03-22T12:00:00.000Z",
  "source": "unauthenticated"
}

Node object

FieldTypeDescription
idstringUnique agent identifier (designation or truncated instance ID for clones)
namestringAgent display name
rolestringAgent role. One of orchestrator, specialist, or worker
statusstringCurrent status. One of active, idle, stale, or offline (fallback only)
xnumberHorizontal position for graph layout
ynumberVertical position for graph layout
loadnumberCurrent load percentage (0–100). Derived from active plan progress
memorynumberMemory usage percentage (0–100). Derived from cortex experience count
fitnessnumberFitness score (0–100). Only present on live nodes
walletAddressstringOn-chain wallet address of the agent. Present when available
childrennumberNumber of child (clone) instances. Only present on parent nodes
endpointsnumberNumber of registered endpoints. Only present on parent nodes
cyclesnumberTotal cognitive cycles completed. Only present on parent nodes
regimestringCurrent free energy regime (for example "explore" or "exploit"). Only present on parent nodes
freeEnergynumberCurrent free energy value. Only present on parent nodes
urlstringSoul instance URL. Only present on parent nodes
The type field was renamed to role and now uses the values orchestrator, specialist, and worker. The monitor role is no longer returned by this endpoint.

Edge object

FieldTypeDescription
idstringUnique edge identifier
fromstringSource agent ID
tostringTarget agent ID
strengthnumberRelationship weight between 0 and 1
The source and target fields were renamed to from and to. The type field on edges was replaced by strength.

Response metadata

FieldTypeDescription
timestampstringISO 8601 timestamp of the response
sourcestringData source. "soul" for live data, "fallback" when no souls are reachable, "unauthenticated" when no valid session is present
nodeCountnumberNumber of live soul nodes fetched. Only present when source is "soul"

Errors

CodeSourceDescription
401BackendUnauthorized — missing or invalid bearer token
500BackendInternal server error
The web proxy returns a 200 response with default empty data (see above) for unauthenticated requests instead of forwarding the backend 401.

Execution traces

GET /api/mission-control/fleet/traces
Returns up to 20 of the most recent execution traces for your agent fleet, sorted by recency. Each trace is returned as an AgentTask-shaped object with fields like description, completedAt, tokensUsed, and costUSD. Traces include active plan steps, recent thoughts, free energy component readings, and cycle status from live soul instances. Returns an empty array when no soul instances are reachable or when the request is unauthenticated.

Authentication

Requires bearer token authentication.

Query parameters

ParameterTypeRequiredDescription
userIdnumberYesThe user ID to fetch execution traces for

Response

[
  {
    "id": "trace-plan-0",
    "status": "running",
    "description": "plan: reflect (2/5)",
    "startedAt": "2026-03-22T12:00:00.000Z",
    "completedAt": null,
    "tokensUsed": 0,
    "costUSD": 0,
    "model": "tempo-x402"
  },
  {
    "id": "trace-thought-0-0",
    "status": "completed",
    "description": "plan: next step is to consolidate memory entries",
    "startedAt": "2026-03-22T11:59:56.000Z",
    "completedAt": "2026-03-22T11:59:56.285Z",
    "tokensUsed": 542,
    "costUSD": 0,
    "model": "tempo-x402"
  },
  {
    "id": "trace-fe-0-0",
    "status": "completed",
    "description": "cortex: surprise=0.12, contribution=0.04",
    "startedAt": "2026-03-22T11:59:50.000Z",
    "completedAt": "2026-03-22T11:59:50.001Z",
    "tokensUsed": 0,
    "costUSD": 0,
    "model": "tempo-x402"
  },
  {
    "id": "trace-cycles-0",
    "status": "idle",
    "description": "cycle 1042 complete — mode: active, regime: explore",
    "startedAt": "2026-03-22T11:59:45.000Z",
    "completedAt": null,
    "tokensUsed": 0,
    "costUSD": 0,
    "model": "tempo-x402"
  }
]

Trace object (AgentTask shape)

FieldTypeDescription
idstringUnique trace identifier
statusstringExecution result. One of completed, running, or idle. Raw success status is mapped to completed
descriptionstringDescription of the task executed
startedAtstringISO 8601 timestamp when the task started
completedAtstring | nullISO 8601 timestamp when the task finished. Computed from the original duration for timed traces. null for ongoing or non-timed traces
tokensUsednumberToken count for inference-type traces. 0 for other trace types
costUSDnumberCost in USD attributed to this trace. Currently always 0
modelstringSoul designation that produced the trace (for example "tempo-x402")
The response is capped at 20 traces, sorted from most recent to oldest.
The previous raw trace fields (type, label, agent, duration, tokens) have been replaced by the AgentTask shape (description, completedAt, tokensUsed, costUSD, model). The status value success is now returned as completed.

Errors

CodeSourceDescription
401BackendUnauthorized — missing or invalid bearer token
500BackendInternal server error
The web proxy returns a 200 response with an empty array [] for unauthenticated requests instead of forwarding the backend 401.

Cost attribution

GET /api/mission-control/fleet/costs
Returns a cost breakdown for your agent fleet. Requires bearer token authentication. The web proxy uses session authentication and resolves the user ID from the session before forwarding to this backend endpoint. Returns a default empty response for unauthenticated requests.

Authentication

Requires bearer token authentication.

Query parameters

ParameterTypeRequiredDescription
userIdnumberYesThe user ID to fetch cost data for

Response

{
  "costs": [],
  "totalSpend": 0,
  "managedAiCost": 0,
  "coordinationRevenue": 0
}

Response fields

FieldTypeDescription
costsarrayList of cost line items. Currently returns an empty array while real data wiring is in progress
totalSpendnumberTotal spend across the fleet
managedAiCostnumberAI model usage cost
coordinationRevenuenumberRevenue from agent coordination

Errors

CodeSourceDescription
401BackendUnauthorized — missing or invalid bearer token
500BackendInternal server error
The web proxy returns a 200 response with { costs: [] } for unauthenticated requests instead of forwarding the backend 401.

Talent bookings

GET /api/mission-control/fleet/bookings
Returns active booking requests for your agent fleet. Requires bearer token authentication. The web proxy uses session authentication and resolves the user ID from the session before forwarding to this backend endpoint. Returns a default empty response for unauthenticated requests.

Authentication

Requires bearer token authentication.

Query parameters

ParameterTypeRequiredDescription
userIdnumberYesThe user ID to fetch booking data for

Response

{
  "bookings": []
}

Response fields

FieldTypeDescription
bookingsarrayList of booking objects. Currently returns an empty array while real data wiring is in progress

Errors

CodeSourceDescription
401BackendUnauthorized — missing or invalid bearer token
500BackendInternal server error
The web proxy returns a 200 response with { bookings: [] } for unauthenticated requests instead of forwarding the backend 401.