> ## 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 unfinished fleet work

> Returns unfinished tasks newest first. Task details remain readable after completion. An empty page does not imply that a conversation request has completed.



## OpenAPI

````yaml https://raw.githubusercontent.com/agentsfleet/agentsfleet/main/public/openapi.json get /v1/workspaces/{workspace_id}/fleets/{fleet_id}/tasks
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/workspaces/{workspace_id}/fleets/{fleet_id}/tasks:
    get:
      tags:
        - Fleets
      summary: List unfinished fleet work
      description: >-
        Returns unfinished tasks newest first. Task details remain readable
        after completion. An empty page does not imply that a conversation
        request has completed.
      operationId: list_fleet_tasks
      parameters:
        - name: workspace_id
          in: path
          description: >-
            Workspace identifier (version 7 universally unique identifier, or
            UUID).
          required: true
          schema:
            type: string
        - name: fleet_id
          in: path
          description: Fleet identifier (version 7 universally unique identifier, or UUID).
          required: true
          schema:
            type: string
        - name: starting_after
          in: query
          description: Opaque next_cursor from the previous page.
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: Page size; defaults to 20.
          required: false
          schema:
            type: integer
            format: int32
            maximum: 100
            minimum: 1
      responses:
        '200':
          description: Current work
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksResponse'
        '400':
          description: Invalid page
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '404':
          description: Workspace or fleet unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '429':
          description: Too many requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '500':
          description: Internal failure
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '503':
          description: Dependency unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
      security:
        - BearerAuth: []
components:
  schemas:
    TasksResponse:
      type: object
      description: A bounded page of unfinished work belonging to one fleet.
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/TaskSummary'
          description: Newest work first; completed work remains available by its identity.
        next_cursor:
          type:
            - string
            - 'null'
          description: Opaque keyset boundary, absent when no later work exists.
    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.'
        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.
    TaskSummary:
      type: object
      description: Compact native state for the fleet's current-work panel.
      required:
        - id
        - title
        - status
        - resource_version
        - generation
        - accepted_revision_id
        - created_at
        - expires_at
      properties:
        accepted_revision_id:
          type: string
          description: Immutable fleet revision accepted by this work.
        created_at:
          type: string
          format: date-time
          description: Native creation instant.
        expires_at:
          type: string
          format: date-time
          description: Existing cumulative deadline.
        generation:
          type: integer
          format: int64
          description: Current task ownership generation.
          minimum: 0
        id:
          type: string
          description: Stable objective identifier.
        resource_version:
          type: integer
          format: int64
          description: Monotonic native resource version.
          minimum: 0
        status:
          $ref: '#/components/schemas/TaskState'
          description: Confirmed durable lifecycle state.
        title:
          type: string
          description: User-facing work title.
    TaskState:
      type: string
      description: The durable objective's state, independent of its current admission.
      enum:
        - ready
        - running
        - waiting
        - blocked
        - paused
        - done
        - cancelled
        - exhausted
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Send a dashboard session token, an account API key (`agt_t`), or a
        command-line credential (`afc_`) as a Bearer token. Each endpoint lists
        accepted credential types.

````

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