---
title: "List journeys"
method: GET
path: "/projects/{projectId}/goals"
tags: ["Swarms"]
---

# List journeys

`GET /projects/{projectId}/goals`

The project's goals, newest first. Archived goals are excluded.

## Request body

- object
  - `cursor` string — Opaque pagination cursor from a previous response's `nextCursor`. Don't parse it.

## Response `200`

A page of goals.

- GoalPage
  - `items` Goal[], required
    - `id` string, required
    - `projectId` string, required
    - `name` string, required
    - `goal` string, required — What the persona is trying to accomplish. This drives the whole run.
    - `personaId` string, required
    - `swarmId` string, nullable, required — The swarm container this goal was authored under. Provenance only — nothing resolves through it at run time, and a goal created outside a swarm has none.
    - `environmentIds` string[], required — Environments this goal fans out across. EMPTY on a host-pinned goal — that is a different execution model, not a goal with no targets.
    - `serverAttachmentId` string — Legacy host-pinned grounding. Absent on an environment-based goal.
    - `iterations` integer, nullable, required — Sessions run against EACH target. Total sessions = targets × this.
    - `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.
  - `nextCursor` string — Present only when another page exists. Opaque — do not parse it.

## 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` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mcpjam/apis/mcpjam-api/changes/projects/:projectId/goals/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)
