> ## 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 your private setup chats



## OpenAPI

````yaml https://raw.githubusercontent.com/agentsfleet/agentsfleet/main/public/openapi.json get /v1/workspaces/{workspace_id}/drafts
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}/drafts:
    get:
      tags:
        - Drafts
      summary: List your private setup chats
      operationId: list_workspace_drafts
      parameters:
        - name: workspace_id
          in: path
          description: >-
            Workspace identifier (version 7 universally unique identifier, or
            UUID).
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Page size, 1..100; default 50.
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
        - name: starting_after
          in: query
          description: >-
            Use the previous `next_cursor` unchanged, for the same creator and
            filters.
          required: false
          schema:
            type: string
        - name: state
          in: query
          description: editing, saving or closed.
          required: false
          schema:
            type: string
        - name: linked_fleet_id
          in: query
          description: Related fleet UUIDv7.
          required: false
          schema:
            type: string
        - name: q
          in: query
          description: >-
            Case-insensitive search of your chat titles and message text, 1..200
            characters after trimming. Bound into the cursor.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Creator-only page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CursorPage_DraftCard'
        '400':
          description: Invalid input or cursor
          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: Workspace unavailable
          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:
        - BearerAuth: []
components:
  schemas:
    CursorPage_DraftCard:
      type: object
      description: >-
        One page of results. `total` is null when unavailable; `next_cursor` is
        null on the last

        page.
      required:
        - items
      properties:
        items:
          type: array
          items:
            type: object
            description: Lightweight creator-only collection item.
            required:
              - id
              - title
              - state
              - etag
              - updated_at
            properties:
              candidate_revision:
                type:
                  - integer
                  - 'null'
                format: int64
                description: >-
                  The current candidate's revision; null before the chat
                  proposes one.
              etag:
                type: string
                description: Strong resource version.
              expires_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: Private retention deadline.
              id:
                type: string
                description: Private draft identity.
              linked_fleet_id:
                type:
                  - string
                  - 'null'
                description: Related fleet, when available.
              publication_revision:
                type:
                  - integer
                  - 'null'
                format: int64
                description: >-
                  The Library revision this chat published; null until it
                  publishes.
              setup_revision:
                type:
                  - integer
                  - 'null'
                format: int64
                description: >-
                  The saved fleet's current setup revision; null while no fleet
                  is saved.
              state:
                type: string
                description: editing, saving or closed.
              title:
                type: string
                description: Human display title.
              updated_at:
                type: string
                format: date-time
                description: Last mutation.
          description: Current bounded rows.
        next_cursor:
          type:
            - string
            - 'null'
          description: Use this value unchanged for the next page, or stop when null.
        total:
          type:
            - integer
            - 'null'
          format: int64
          description: Known total, or null.
          minimum: 0
    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.
  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.