Launch a swarm run
Launches, as one new swarm run, the goals of a swarm run again (swarmRun), of a swarm’s latest swarm run (swarm), or an explicit list (goals).
Answers 202 once the first goal’s run has started; the rest start in the background. Follow them with GET /projects/{projectId}/swarm-runs/{swarmRunId}.
SPENDS. Each goal fans out into targets × iterations sessions, so a launch runs goals × targets × iterations sessions on your organization’s account. POST /projects/{projectId}/swarm-runs/plan with the same body returns that count, and anything that would refuse the launch, with nothing launched.
A plan problem (an archived goal, a model the organization no longer allows, iterations out of range) answers 400 with every problem in details.problems. A refusal that comes after the launch was recorded carries the launch in details.launch.
Authorizations
MCPJam API key (sk_…). Create one at Settings → API keys. Guest sessions cannot use the API, and API keys cannot manage other API keys.
Headers
Send one. The same key answers with the same launch rather than starting a second, and resumes it once it was stopped or interrupted. It wins over idempotencyKey in the body. The same key with a different request answers 409.
With no key at all, every call starts a new swarm run.
1 - 200Body
What to launch: exactly one of swarmRun, swarm or goals.
What to launch: exactly one of swarmRun, swarm or goals.
Response
The launch is under way: its first goal started.

