> ## 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 configured account models

> Lists configured models newest first, with provider details and whether each is active. API keys are never returned. Several entries may share a `secret_ref`.

Pass `next_cursor` as `starting_after`; null means the last page. Keep `limit` unchanged while paging, or restart from the first page.



## OpenAPI

````yaml https://raw.githubusercontent.com/agentsfleet/agentsfleet/main/public/openapi.json get /v1/tenants/me/models
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/tenants/me/models:
    get:
      tags:
        - Tenant
      summary: List configured account models
      description: >-
        Lists configured models newest first, with provider details and whether
        each is active. API keys are never returned. Several entries may share a
        `secret_ref`.


        Pass `next_cursor` as `starting_after`; null means the last page. Keep
        `limit` unchanged while paging, or restart from the first page.
      operationId: list_tenant_model_entries
      parameters:
        - name: starting_after
          in: query
          description: Cursor returned as `next_cursor` by the previous page.
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: How many rows to return.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelEntriesResponse'
        '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'
        '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:
    ModelEntriesResponse:
      type: object
      description: '`GET /v1/tenants/me/models` — one page of the registry.'
      required:
        - models
        - platform_default_available
      properties:
        models:
          type: array
          items:
            $ref: '#/components/schemas/ModelEntryRow'
          description: The registered models, newest first.
        next_cursor:
          type:
            - string
            - 'null'
          description: Where the next page resumes, or null on the last one.
        platform_default:
          oneOf:
            - $ref: '#/components/schemas/PlatformDefaultRow'
              description: The default's identity, when there is one.
            - type: 'null'
        platform_default_available:
          type: boolean
          description: Whether an active platform-default row exists at all.
        total:
          type:
            - integer
            - 'null'
          format: int64
          description: Always null — see the module note.
          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.
    ModelEntryRow:
      type: object
      description: >-
        One configured model, as the registry page shows it.


        `id` is the entry's own identity — the `{id}` the item route takes — and
        not

        the model's. The model is `model_id`, which is what a provider spells.
      required:
        - id
        - model_id
        - secret_ref
        - kind
        - has_key
        - active
        - created_at
      properties:
        active:
          type: boolean
          description: Whether this entry is the tenant's current selection.
        base_url:
          type:
            - string
            - 'null'
          description: The custom endpoint, where one may be displayed.
        cached_input_nanos_per_mtok:
          oneOf:
            - $ref: '#/components/schemas/Nanos'
              description: The cached-input rate, likewise.
            - type: 'null'
        context_cap_tokens:
          type:
            - integer
            - 'null'
          format: int32
          description: |-
            The context window this model is priced at, in tokens.

            Absent when the catalogue carries no rate for this model. An absent
            value does not mean zero.
          minimum: 0
        created_at:
          type: string
          format: date-time
          description: When it was first stored.
        display_name:
          type:
            - string
            - 'null'
          description: >-
            The catalogue's label for the model. Absent for a model the
            catalogue

            does not carry, which a picker shows by its `model_id`.
        has_key:
          type: boolean
          description: Whether a key is stored under that name. Never the key.
        id:
          type: string
          description: The entry's identity.
        input_nanos_per_mtok:
          oneOf:
            - $ref: '#/components/schemas/Nanos'
              description: The input rate, in nanos per million tokens.
            - type: 'null'
        kind:
          type: string
          description: What the credential is, as the server classified it at write time.
        model_id:
          type: string
          description: The model this entry configures.
        output_nanos_per_mtok:
          oneOf:
            - $ref: '#/components/schemas/Nanos'
              description: The output rate, likewise.
            - type: 'null'
        provider:
          type:
            - string
            - 'null'
          description: The provider label, for the credential kinds that carry one.
        secret_ref:
          type: string
          description: The vault key name backing it.
    PlatformDefaultRow:
      type: object
      description: The deployment's platform default, as the page's Default row shows it.
      required:
        - provider
        - model
        - context_cap_tokens
      properties:
        cached_input_nanos_per_mtok:
          oneOf:
            - $ref: '#/components/schemas/Nanos'
              description: The cached-input rate, likewise.
            - type: 'null'
        context_cap_tokens:
          type: integer
          format: int32
          description: The context window the catalogue prices it at.
          minimum: 0
        display_name:
          type:
            - string
            - 'null'
          description: |-
            The catalogue's label for the model. Absent when the catalogue
            carries no price for it.
        input_nanos_per_mtok:
          oneOf:
            - $ref: '#/components/schemas/Nanos'
              description: The input rate, in nanos per million tokens.
            - type: 'null'
        model:
          type: string
          description: The model it selects.
        output_nanos_per_mtok:
          oneOf:
            - $ref: '#/components/schemas/Nanos'
              description: The output rate, likewise.
            - type: 'null'
        provider:
          type: string
          description: The provider the default belongs to.
    Nanos:
      type: string
      description: A whole number of nanos (10⁻⁹ US dollars) as a decimal string.
      pattern: ^(0|[1-9][0-9]*)$
  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.