---
title: "Get a swarm"
method: GET
path: "/projects/{projectId}/swarms/{swarmId}"
tags: ["Swarms"]
---

# Get a swarm

`GET /projects/{projectId}/swarms/{swarmId}`

## Response `200`

The swarm.

- Swarm — An authoring container for goals. It holds DEFAULTS, not execution state — launching happens per goal.
  - `id` string, required
  - `projectId` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `environmentIds` string[], required — Default fan-out for goals authored under this container.
  - `iterations` integer, nullable, required — Sessions run against EACH target. Total sessions = targets x this.
  - `sessionsPerTarget` integer, nullable, required — Pre-rename spelling of `iterations`, emitted alongside it until general availability.
  - `maxTurns` integer, nullable, required
  - `setupWrites` boolean — Whether prerequisite setup may create or modify workspace data before sessions run. Defaults to false.
  - `createdAt` number, required — Epoch milliseconds.
  - `updatedAt` number, required — Epoch milliseconds.

## Other responses

- `401` — Missing, invalid, revoked, or orphaned key (`UNAUTHORIZED`) — or the **target MCP server** needs an OAuth grant (`OAUTH_REQUIRED`), which is a property of the server, not your key.
- `403` — Key is valid but not allowed to do this.
- `404` — Unknown project, server, or resource.
- `429` — Per-key rate limit exceeded (60 requests/minute sustained, bursts up to 10). Honor `Retry-After` and back off with jitter.
- `500` — Something failed on MCPJam's side.

## Changes

- **2026-09-22** `561e4fd0dfa2` — 2 info
  - response property `sessionsPerTarget` deprecated
  - added the required property `iterations` to the response with the `200` status
- **2026-09-17** `bc9863625ac8` — 1 info
  - added the optional property `setupWrites` to the response with the `200` status
- **2026-08-15** `d3adfe49fbbf` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mcpjam/apis/mcpjam-api/changes/projects/:projectId/swarms/:swarmId/get.md)

---

[API](https://skmtc.dev/mcpjam/apis/mcpjam-api.md) · [All operations](https://skmtc.dev/mcpjam/apis/mcpjam-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mcpjam/apis/mcpjam-api/revisions/04044ef64a5f?raw)
