> ## 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 owner's supported model choices

> Requires fleet:read and current membership. References and prices belong to the workspace billing owner; no key or key location is returned.



## OpenAPI

````yaml https://raw.githubusercontent.com/agentsfleet/agentsfleet/main/public/openapi.json get /v1/workspaces/{workspace_id}/models
openapi: 3.1.0
info:
  title: agentsfleet Control Plane 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}/models:
    get:
      tags:
        - Drafts
      summary: List the workspace owner's supported model choices
      description: >-
        Requires fleet:read and current membership. References and prices belong
        to the workspace billing owner; no key or key location is returned.
      operationId: list_workspace_models
      parameters:
        - name: workspace_id
          in: path
          description: '`UUIDv7` of the workspace.'
          required: true
          schema:
            type: string
        - name: purpose
          in: query
          description: authoring or runtime; omit for either
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: Rows scanned per page, 1..100; default 50
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
        - name: starting_after
          in: query
          description: Opaque owner/workspace/person/purpose/page-size bound cursor
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Configured priced choices
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CursorPage_WorkspaceModel'
        '400':
          description: Invalid input or cursor
          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 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:
    CursorPage_WorkspaceModel:
      type: object
      description: A bounded keyset page; unavailable totals and final cursors are null.
      required:
        - items
      properties:
        items:
          type: array
          items:
            type: object
            description: >-
              A priced explicit selection owned by the workspace's billing
              account.
            required:
              - ref
              - label
              - provider
              - model
              - context_window_tokens
              - eligibility
              - pricing
            properties:
              context_window_tokens:
                type: integer
                format: int32
                description: Catalogue context bound.
              eligibility:
                $ref: '#/components/schemas/Eligibility'
                description: Supported purposes.
              label:
                type: string
                description: Display label.
              max_output_tokens:
                type:
                  - integer
                  - 'null'
                format: int64
                description: >-
                  Saved output ceiling; omitted while inference settings are
                  unconfigured.
              model:
                type: string
                description: Provider model identifier.
              pricing:
                $ref: '#/components/schemas/ModelPricing'
                description: Exact current rates.
              provider:
                type: string
                description: Approved provider identifier.
              ref:
                type: string
                description: >-
                  Opaque registry reference, including an explicit platform
                  default.
          description: Current bounded rows.
        next_cursor:
          type:
            - string
            - 'null'
          description: Opaque continuation, or 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:
            - integer
            - 'null'
          format: int64
          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.
    Eligibility:
      type: object
      description: Eligibility for each supported purpose is independent.
      required:
        - authoring
        - runtime
      properties:
        authoring:
          type: boolean
          description: Bounded setup authoring is supported.
        runtime:
          type: boolean
          description: Runtime provider resolution is supported.
    ModelPricing:
      type: object
      description: Integer prices never cross a floating-point client boundary.
      required:
        - input_nanos_per_million
        - output_nanos_per_million
        - runtime_nanos_per_second
      properties:
        input_nanos_per_million:
          type: string
          description: Input nanos per million tokens.
        output_nanos_per_million:
          type: string
          description: Output nanos per million tokens.
        runtime_nanos_per_second:
          type: string
          description: Runtime nanos per second.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Obtain a token via the CLI auth flow (POST /v1/auth/sessions) or GitHub
        OAuth

````

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