> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mcpjam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List a journey's runs

> Newest first. Compact records — `attempts` is on the single-run read.



## OpenAPI

````yaml /reference/openapi.json get /projects/{projectId}/journeys/{journeyId}/runs
openapi: 3.1.0
info:
  title: MCPJam API
  version: 1.0.0-preview
  description: >-
    Programmatic access to MCP servers saved in your MCPJam projects — live
    diagnostics (validate, inspect, export) and operations: call tools, render
    prompts, run eval suites asynchronously and poll their results, and import
    OAuth tokens.


    **The API is in preview**: the surface may change while we finish the
    design. Error `code` values are stable; error `message` strings are not.
    Write clients that ignore unknown response fields.
  contact:
    name: MCPJam
    url: https://github.com/MCPJam/inspector/issues
servers:
  - url: https://app.mcpjam.com/api/v1
    description: Hosted MCPJam
security:
  - bearerAuth: []
tags:
  - name: Hosts
    description: >-
      Project hosts: named model + capability profiles you run chats and eval
      suites against.
  - name: Environments
    description: >-
      Project environments: named, live-editable execution bundles (one host, an
      optional standalone server group, optionally pinned skills and plugin
      versions) that eval suites and journeys run against. Distinct from Sandbox
      images, which are Computer base images. Reads require project membership;
      every write requires project admin.
  - name: Plugins
    description: >-
      Agent Plugins imported into a project — read-only inventory and version
      detail.
  - name: Sandbox images
    description: >-
      Custom Computer images: a digest-pinned Dockerfile built into an immutable
      image your project's computers boot from.
  - name: Server diagnostics
    description: Connect-level health checks against a saved MCP server.
  - name: Primitives
    description: 'The server''s MCP primitives: tools, prompts, and resources.'
  - name: Export
    description: Full-server snapshots for diffing and CI.
  - name: Execution
    description: 'Run the server''s primitives: call tools, render prompts.'
  - name: Eval runs
    description: >-
      Asynchronous eval suite runs: create with 202, poll status, iterations,
      and traces.
  - name: Server connections
    description: >-
      Connect an MCP server URL to a project, authorizing in a browser when the
      server requires it.
  - name: OAuth
    description: 'Bring-your-own OAuth: import externally obtained tokens for a server.'
  - name: Chatboxes
    description: >-
      Read-only access to the chatboxes published from a project: listing,
      settings, attached servers, and share links.
  - name: Catalog
    description: >-
      Discover the resources the other routes operate on: your account,
      projects, servers, eval suites, and chat sessions.
  - name: Tunnels
    description: >-
      Relay tunnels that expose local MCP servers through a public URL,
      registered as first-class project servers (the `mcpjam tunnel` CLI flow).
  - name: Agent
    description: >-
      Headless agent turns over the public API: send a message history, the
      server runs one assistant turn with project-scoped workspace tools (eval
      reads + suite creation) on a pinned hosted model, and returns the reply
      plus created-resource references.
  - name: Swarms
    description: >-
      Personas, journeys and swarm containers — the authoring half of Swarms —
      plus the model-backed generation that drafts them.
  - name: Swarm runs
    description: >-
      Launching journeys and reading what they produced. Launching SPENDS — see
      the per-operation notes.
  - name: Swarm insights
    description: >-
      What a swarm run revealed. The scorecard and findings are deterministic
      and free; requesting wave insights runs models and draws on your shared
      daily ledger.
  - name: User testing
    description: >-
      Publishing an environment for real visitors, and controlling who can reach
      it. Several of these NARROW access and take effect immediately.
paths:
  /projects/{projectId}/journeys/{journeyId}/runs:
    parameters:
      - $ref: '#/components/parameters/projectId'
      - $ref: '#/components/parameters/journeyId'
    get:
      tags:
        - Swarm runs
      summary: List a journey's runs
      description: Newest first. Compact records — `attempts` is on the single-run read.
      operationId: listJourneyRuns
      requestBody:
        $ref: '#/components/requestBodies/cursorBody'
      responses:
        '200':
          description: A page of runs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JourneyRunPage'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    projectId:
      name: projectId
      in: path
      required: true
      description: ID of the hosted project that contains the server.
      schema:
        type: string
    journeyId:
      name: journeyId
      in: path
      required: true
      description: Journey ID, as returned by the project's journey list.
      schema:
        type: string
  requestBodies:
    cursorBody:
      required: false
      description: Optional pagination cursor.
      content:
        application/json:
          schema:
            type: object
            properties:
              cursor:
                type: string
                description: >-
                  Opaque pagination cursor from a previous response's
                  `nextCursor`. Don't parse it.
          example: {}
  schemas:
    JourneyRunPage:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/JourneyRun'
        nextCursor:
          type: string
          description: Present only when another page exists.
    JourneyRun:
      type: object
      required:
        - id
        - projectId
        - journeyId
        - status
        - canceled
        - stale
        - summary
        - targets
        - createdAt
      properties:
        id:
          type: string
        projectId:
          type: string
        journeyId:
          type: string
        waveId:
          type: string
          description: >-
            The batch this run was launched with. Sibling runs of one
            co-launched wave share it; a solo relaunch is a wave of one. Absent
            on a run launched without one.
        status:
          type: string
          description: Poll until it leaves `running`.
          enum:
            - running
            - completed
            - partial
            - failed
            - rate_limited
        canceled:
          type: boolean
          description: >-
            True when somebody STOPPED this run. **Check this before showing a
            run as a failure**: a cancelled run reports `status: "failed"`,
            because cancellation is recorded as a marker rather than a status of
            its own.
        stale:
          type: boolean
          description: >-
            True when the runner went silent and the watchdog settled the run.
            Distinct from a run that failed while still reporting.
        error:
          type: string
          description: Raw marker behind `canceled` / `stale`.
        summary:
          $ref: '#/components/schemas/JourneyRunSummary'
        targets:
          type: array
          items:
            $ref: '#/components/schemas/JourneyRunTarget'
        persona:
          type: object
          description: >-
            The persona AS PINNED AT LAUNCH, from the run's immutable snapshot —
            not the persona's current values, which may have been edited since.
          properties:
            personaId:
              type:
                - string
                - 'null'
            name:
              type:
                - string
                - 'null'
            role:
              type:
                - string
                - 'null'
        attempts:
          type: array
          description: >-
            Per-session execution records. Present on the single-run read only —
            lists stay compact.
          items:
            $ref: '#/components/schemas/JourneyRunAttempt'
        targetSummaries:
          type: array
          description: The same counts as `summary`, broken down per target.
          items:
            type: object
            required:
              - hostId
              - total
              - succeeded
              - failed
              - rateLimited
            properties:
              hostId:
                type: string
              targetId:
                type: string
              total:
                type: integer
              succeeded:
                type: integer
              failed:
                type: integer
              rateLimited:
                type: integer
        createdAt:
          type: number
          description: Epoch milliseconds.
        lastHeartbeatAt:
          type: number
          description: >-
            Epoch milliseconds of the runner's last check-in. A long-stale
            heartbeat on a `running` run is what the watchdog acts on.
        insights:
          allOf:
            - $ref: '#/components/schemas/InsightsEnvelope'
          description: >-
            The common actionable-insights envelope. Present on the DETAIL
            response only — lists stay compact — and absent when the caller may
            not have it or the deployment cannot produce one. Treat absence
            exactly like `status: "not_available"`.
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: >-
            Stable, machine-readable error code. New codes may be added over
            time; treat unknown codes as non-retryable failures unless the HTTP
            status says otherwise.
          enum:
            - UNAUTHORIZED
            - FORBIDDEN
            - NOT_FOUND
            - CONFLICT
            - VALIDATION_ERROR
            - RATE_LIMITED
            - FEATURE_NOT_SUPPORTED
            - SERVER_UNREACHABLE
            - TIMEOUT
            - OAUTH_REQUIRED
            - INTERNAL_ERROR
        message:
          type: string
          description: >-
            Human-readable description. May change between releases — don't
            match on it.
        details:
          type: object
          description: Optional, unstructured context bag.
          additionalProperties: true
    JourneyRunSummary:
      type: object
      required:
        - total
        - succeeded
        - failed
        - rateLimited
      properties:
        total:
          type: integer
          description: Targets × `sessionsPerTarget`, fixed at launch.
        succeeded:
          type: integer
        failed:
          type: integer
        rateLimited:
          type: integer
    JourneyRunTarget:
      type: object
      required:
        - hostId
      properties:
        hostId:
          type: string
        hostName:
          type: string
        targetId:
          type: string
          description: >-
            Execution identity. TWO TARGETS CAN SHARE A `hostId` — two
            environments may resolve to the same host with different servers —
            so this, not `hostId`, is what identifies a target within a run.
        modelId:
          type: string
    JourneyRunAttempt:
      type: object
      description: 'One session''s execution record: (target, session index).'
      required:
        - chatSessionId
        - hostId
        - targetId
        - sessionIndex
        - status
        - errorCode
        - errorMessage
      properties:
        chatSessionId:
          type:
            - string
            - 'null'
          description: '`null` until the attempt claims a session.'
        hostId:
          type: string
        targetId:
          type:
            - string
            - 'null'
        sessionIndex:
          type: integer
        status:
          type: string
          description: >-
            `pending` → `running` → terminal. A `pending` attempt cannot jump
            straight to a terminal state.
          enum:
            - pending
            - running
            - succeeded
            - failed
            - rate_limited
        errorCode:
          type:
            - string
            - 'null'
        errorMessage:
          type:
            - string
            - 'null'
          description: Capped and redacted before it reaches this response.
    InsightsEnvelope:
      type: object
      required:
        - schemaVersion
        - scope
        - status
        - reasonCode
        - retryable
        - error
        - generatedAt
        - updatedAt
        - summary
        - coverage
        - findings
        - truncation
      description: >-
        The common insights envelope, shared by eval runs, swarm waves and
        user-testing windows.


        One shape for three producers, so a caller writes the reading code once.
        An ABSENT envelope and `status: "not_available"` mean the same thing and
        both are normal: the field is an enrichment, and a caller who may not
        have it gets the resource without it rather than an error.
      properties:
        schemaVersion:
          type: integer
          enum:
            - 1
        scope:
          $ref: '#/components/schemas/InsightScope'
        status:
          type: string
          description: >-
            `not_available` means this deployment cannot produce insights at all
            — treat an ABSENT envelope the same way. `not_requested` means
            nobody has asked. `pending` means one is running: poll, do not
            re-request.
          enum:
            - not_available
            - not_requested
            - pending
            - completed
            - failed
        reasonCode:
          type:
            - string
            - 'null'
        retryable:
          type: boolean
          description: >-
            Whether asking again could produce a different answer. False on a
            `failed` envelope means the input, not the attempt, was the problem.
        error:
          oneOf:
            - type: object
              required:
                - code
                - message
              properties:
                code:
                  type: string
                message:
                  type: string
            - type: 'null'
        generatedAt:
          type:
            - integer
            - 'null'
        updatedAt:
          type:
            - integer
            - 'null'
        summary:
          type:
            - string
            - 'null'
        coverage:
          type: object
          required:
            - unit
            - analyzed
            - total
            - truncated
            - lowConfidence
          description: >-
            READ THIS BEFORE QUOTING ANY FINDING. `truncated` and
            `lowConfidence` are the difference between "this happens" and "this
            happened in the part we looked at".
          properties:
            unit:
              type: string
              enum:
                - iterations
                - sessions
            analyzed:
              type: integer
            total:
              type: integer
            gradedCount:
              type: integer
            feedbackCount:
              type: integer
            truncated:
              type: boolean
              description: The analysis saw `analyzed` of `total`, not all of it.
            lowConfidence:
              type: boolean
              description: >-
                Too little was analyzed to generalize. Findings still stand as
                observations of what WAS seen.
        findings:
          type: array
          items:
            $ref: '#/components/schemas/ActionableFinding'
        runHealth:
          type: object
          required:
            - targets
          description: >-
            Swarm only. Launch outcomes never appear as findings — a run that
            could not start is an operational fact, not something the server
            under test did.
          properties:
            targets:
              type: array
              items:
                type: object
                required:
                  - subjectKind
                  - subjectId
                  - subjectLabel
                  - attempted
                  - succeeded
                  - failed
                  - rateLimited
                properties:
                  subjectKind:
                    type: string
                    enum:
                      - environment
                      - host
                  subjectId:
                    type: string
                  subjectLabel:
                    type: string
                  attempted:
                    type: integer
                  succeeded:
                    type: integer
                  failed:
                    type: integer
                  rateLimited:
                    type: integer
        truncation:
          type: object
          required:
            - truncated
            - omittedFindings
            - omittedEvidence
            - contractTruncated
          description: >-
            What this RESPONSE dropped to stay a sane size, as distinct from
            what the ANALYSIS did not look at (`coverage`).
          properties:
            truncated:
              type: boolean
            omittedFindings:
              type: integer
            omittedEvidence:
              type: integer
            contractTruncated:
              type: boolean
    InsightScope:
      type: object
      required:
        - kind
        - id
      description: What this envelope is about. The extra fields depend on `kind`.
      properties:
        kind:
          type: string
          enum:
            - eval_run
            - swarm_wave
            - user_testing_window
        id:
          type: string
        runId:
          type: string
          description: '`swarm_wave` only.'
        scenarioId:
          type: string
          description: '`user_testing_window` only.'
        windowStartAt:
          type: integer
          description: '`user_testing_window` only.'
        windowEndAt:
          type: integer
          description: '`user_testing_window` only.'
    ActionableFinding:
      type: object
      required:
        - id
        - signalFingerprint
        - title
        - category
        - attribution
        - actionTarget
        - actionability
        - severity
        - confidence
        - observed
        - recommendation
        - acceptanceCriteria
        - affected
        - evidence
      description: >-
        One actionable finding. The fields are ordered from cheapest to trust to
        most: `observed` is deterministic, `recommendation` is the model's, and
        `evidence` lets you check both.
      properties:
        id:
          type: string
          description: >-
            Stable remediation id (`rf_<16 hex>`). Survives dynamic error
            values, so the same problem keeps the same id across runs — dismiss
            it once and it stays dismissed.
        signalFingerprint:
          type: string
          description: >-
            The registry signal this derives from. Several findings can share
            one.
        title:
          type: string
        category:
          type: string
          enum:
            - unknown
            - tool_contract
            - tool_runtime
            - capability_gap
            - workflow
            - agent_behavior
            - test_design
            - environment
        attribution:
          type: string
          description: >-
            WHOSE problem this is. `server_*` points at the MCP server;
            `agent_or_prompt` and `test_design` point back at the caller.
          enum:
            - unknown
            - server_contract
            - server_runtime
            - server_capability
            - agent_or_prompt
            - test_design
            - environment
        actionTarget:
          type: string
          description: What you would change to fix it.
          enum:
            - investigate
            - mcp_server
            - agent_configuration
            - eval_case
            - environment
        actionability:
          type: string
          description: >-
            `ready` means the finding names a specific target and change.
            `investigate` means it does not yet. `informational` means there is
            nothing to do.
          enum:
            - informational
            - investigate
            - ready
        severity:
          type: string
          enum:
            - info
            - low
            - medium
            - high
        confidence:
          type: string
          enum:
            - low
            - medium
            - high
        observed:
          type: string
          description: >-
            DETERMINISTIC observation — counts and identities, never model
            prose. This is the part you can verify yourself.
        rootCause:
          type: string
        recommendation:
          type: string
        acceptanceCriteria:
          type: array
          description: How you would know the fix worked.
          items:
            type: string
        affected:
          type: object
          required:
            - count
            - total
            - unit
          description: >-
            How much of the analyzed population hit this. Read it as a ratio —
            `1/40` and `38/40` are different problems.
          properties:
            count:
              type: integer
            total:
              type: integer
            unit:
              type: string
              enum:
                - iterations
                - sessions
        patternSlug:
          type: string
        target:
          type: object
          required:
            - serverId
            - surface
            - snapshotHash
          description: >-
            Present only when a server (and, for tool surfaces, a tool) resolved
            against the pinned snapshot. Required for `mcp_server` / `ready`.
          properties:
            serverId:
              type: string
            toolName:
              type: string
            surface:
              type: string
              enum:
                - description
                - input_schema
                - output_schema
                - handler
                - server_instructions
                - capability
            fieldPath:
              type: string
            snapshotHash:
              type: string
              description: >-
                The pinned snapshot the target resolved against, so a finding
                cannot silently re-point at a definition that changed after it
                was written.
            currentDefinition:
              type: object
              required:
                - truncated
              properties:
                description:
                  type: string
                inputSchemaJson:
                  type: string
                outputSchemaJson:
                  type: string
                truncated:
                  type: boolean
        evidence:
          type: array
          items:
            $ref: '#/components/schemas/ActionableFindingEvidence'
    ActionableFindingEvidence:
      type: object
      required:
        - kind
        - excerpt
      description: >-
        One citation behind a finding. Evidence is what makes a finding
        checkable rather than an assertion.
      properties:
        sessionId:
          type: string
        iterationId:
          type: string
        kind:
          type: string
          enum:
            - tool_error
            - transcript
            - feedback
            - judge
            - contrast
        excerpt:
          type: string
          description: Scrubbed and clipped at the producer. Never a full transcript.
        toolName:
          type: string
        errorCode:
          type: string
  responses:
    Unauthorized:
      description: >-
        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.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            badKey:
              summary: Invalid or revoked key
              value:
                code: UNAUTHORIZED
                message: Invalid API key
            oauthRequired:
              summary: Target server needs an OAuth grant
              value:
                code: OAUTH_REQUIRED
                message: Server requires OAuth authorization
    Forbidden:
      description: Key is valid but not allowed to do this.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: FORBIDDEN
            message: You do not have access to this project
    NotFound:
      description: Unknown project, server, or resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: NOT_FOUND
            message: Server not found
    RateLimited:
      description: >-
        Per-key rate limit exceeded (60 requests/minute sustained, bursts up to
        10). Honor `Retry-After` and back off with jitter.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: RATE_LIMITED
            message: API key rate limit exceeded. Slow down and retry.
    InternalError:
      description: Something failed on MCPJam's side.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: INTERNAL_ERROR
            message: Unexpected internal error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        MCPJam API key (`sk_…`). Create one at [Settings → API
        keys](https://app.mcpjam.com/settings/api-keys). Guest sessions cannot
        use the API, and API keys cannot manage other API keys.

````