Skip to main content
GET
Get a swarm run

Authorizations

Authorization
string
header
required

MCPJam API key (sk_…). Create one at Settings → API keys. Guest sessions cannot use the API, and API keys cannot manage other API keys.

Path Parameters

projectId
string
required

ID of the hosted project that contains the server.

swarmRunId
string
required

Swarm run ID: the opaque group id shared by every run of one co-launched swarm. Returned on every run in the swarm run.

Query Parameters

include
enum<string>

launchFailures adds why sessions never ran. Off by default.

Available options:
launchFailures

Response

The swarm run.

One swarm run: the goal runs launched together under one swarmRunId. Read settled before treating any count as final.

swarmRunId
string
required
swarmId
string | null
required

The swarm the goals were launched from, when one is known.

swarmName
string | null
required
createdAt
number
required

Epoch milliseconds.

state
enum<string>
required

The state the swarm run page shows. launching, running and stopping are not final.

Available options:
launching,
running,
stopping,
stopped,
issues,
complete
settled
boolean
required

True once the state is final, the launch is no longer launching and no goal run is waiting for grading. Until then counts can still change.

totals
object
required
runs
object[]
required
launch
object | null
required

The launch that started the swarm run. null for a swarm run that was not started as one launch.

launchFailures
object[]

Only the goal runs with sessions that never ran. Present only with include=launchFailures.