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

# List the workspace's fleets

> Lists the fleets in the running fleet's workspace, newest first, archived fleets included with their status. Continue with `starting_after` and `limit`.



## OpenAPI

````yaml https://raw.githubusercontent.com/agentsfleet/agentsfleet/main/public/openapi.json get /v1/runners/me/runs/{run_id}/fleets
openapi: 3.1.0
info:
  title: agentsfleet API
  description: API for managing workspaces, fleets, triggers, and runs.
  contact:
    name: agentsfleet
    url: https://agentsfleet.net
  license:
    name: MIT
    identifier: MIT
  version: 1.0.0
servers:
  - url: https://api.agentsfleet.net
    description: Production
security: []
paths:
  /v1/runners/me/runs/{run_id}/fleets:
    get:
      tags:
        - Runners
      summary: List the workspace's fleets
      description: >-
        Lists the fleets in the running fleet's workspace, newest first,
        archived fleets included with their status. Continue with
        `starting_after` and `limit`.
      operationId: runner_list_fleets
      parameters:
        - name: run_id
          in: path
          description: Run identifier (version 7 universally unique identifier, or UUID).
          required: true
          schema:
            type: string
        - name: fencing_token
          in: query
          description: >-
            Attempt token returned with the run. Replaced assignments are
            refused.
          required: true
          schema:
            type: integer
            format: int64
            minimum: 0
        - name: starting_after
          in: query
          description: Use the previous response's `next_cursor` unchanged.
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: Page size, 1 to 100. Defaults to 50.
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FleetsPage'
        '400':
          description: The request is invalid
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '401':
          description: Authentication is missing, invalid, or not accepted by this endpoint
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '403':
          description: You do not have permission for this action
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '404':
          description: The resource was not found or is not accessible to you
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '409':
          description: The request conflicts with the resource's current state
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '429':
          description: A request or capacity limit has been reached
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '500':
          description: An internal server error occurred
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '503':
          description: A required service is unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
      security:
        - RunnerBearerAuth: []
components:
  schemas:
    FleetsPage:
      type: object
      description: One page of the run's workspace's fleets, newest first.
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/FleetItem'
          description: >-
            The fleets on this page. Beta: this field may change shape before it
            is stable.
          x-stability: beta
        next_cursor:
          type:
            - string
            - 'null'
          description: >-
            Pass back as `starting_after` for the next page; null on the last
            one. Beta: this field may change shape before it is stable.
          x-stability: beta
        total:
          type:
            - integer
            - 'null'
          format: int64
          description: >-
            Unknown without a separate count; always null. Beta: this field may
            change shape before it is stable.
          minimum: 0
          x-stability: beta
    ProblemBody:
      type: object
      description: The body every refusal carries, under `application/problem+json`.
      required:
        - docs_uri
        - title
        - detail
        - error_code
        - request_id
      properties:
        action_id:
          type:
            - string
            - 'null'
          description: 'On that 409 only: the action the gate held.'
        current_state:
          type:
            - string
            - 'null'
          description: 'On a 409 only: the state that forbade the transition.'
        detail:
          type: string
          description: One sentence on what was refused and why.
        docs_uri:
          type: string
          description: Where the error code is documented.
        error_code:
          type: string
          description: The registry code, stable across releases.
        etag:
          type:
            - string
            - 'null'
          description: >-
            On a 412 only: the resource's current entity tag, to refetch and
            retry.
        gate_id:
          type:
            - string
            - 'null'
          description: 'On an answered approval gate''s 409 only: the gate that was answered.'
        local_read_permitted:
          type:
            - boolean
            - 'null'
          description: >-
            On a temporary extract outage, true authorizes one local read under
            the fleet's network policy.
        outcome:
          type:
            - string
            - 'null'
          description: 'On that 409 only: the answer that stands.'
        request_id:
          type: string
          description: The request this refusal answers, for support.
        resolved_at:
          type:
            - string
            - 'null'
          format: date-time
          description: 'On that 409 only: when the standing answer was given.'
        resolved_by:
          type:
            - string
            - 'null'
          description: 'On that 409 only: who gave it.'
        title:
          type: string
          description: A short name for the refusal, safe to show a person.
        user_message:
          type:
            - string
            - 'null'
          description: A curated sentence for end users, where the code has one.
    FleetItem:
      type: object
      description: One fleet of the run's workspace.
      required:
        - fleet_id
        - name
        - status
        - events_processed
      properties:
        events_processed:
          type: string
          description: >-
            How many turns it has processed, as a decimal string. Beta: this
            field may change shape before it is stable.
          x-stability: beta
        fleet_id:
          type: string
          description: >-
            The fleet's identifier: what `fleet_steer` and the turns read take.
            Beta: this field may change shape before it is stable.
          x-stability: beta
        name:
          type: string
          description: >-
            Its saved name in this workspace. Beta: this field may change shape
            before it is stable.
          x-stability: beta
        status:
          type: string
          description: >-
            Where it stands: `active` or `archived`. Beta: this field may change
            shape before it is stable.
          x-stability: beta
  securitySchemes:
    RunnerBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: agt_r
      description: >-
        Runner token beginning with agt_r, returned once by POST
        /v1/admin/runners

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.