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

# List models

> Returns the agent models and LLMs accepted by `config.agent_model` and `config.llm_model` on `POST /converse`.



## OpenAPI

````yaml get /models
openapi: 3.0.3
info:
  version: 0.1.1
  title: Datagrid API
  description: Datagrid API
servers:
  - url: https://api.datagrid.com/v1
security:
  - BearerAuth: []
paths:
  /models:
    get:
      tags:
        - Models
      summary: List models
      description: >-
        Returns the agent models and LLMs accepted by `config.agent_model` and
        `config.llm_model` on `POST /converse`.
      operationId: Models.listModels
      responses:
        '200':
          description: List of models
          content:
            application/json:
              schema:
                type: object
                required:
                  - object
                  - data
                properties:
                  object:
                    type: string
                    enum:
                      - list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Model'
        '429':
          description: >-
            Rate limit exceeded. The request has been throttled because the rate
            limit for this endpoint has been reached. Check the `Retry-After`
            response header and retry after the specified number of seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
components:
  schemas:
    Model:
      type: object
      description: An agent model or LLM that can be selected for a conversation.
      required:
        - object
        - id
        - type
        - name
        - provider
        - available
      properties:
        object:
          type: string
          enum:
            - model
          description: The object type, which is always `model`.
        id:
          type: string
          description: >-
            The value to pass as `config.agent_model` (for `agent` models) or
            `config.llm_model` (for `llm` models).
        type:
          type: string
          enum:
            - agent
            - llm
          description: Whether the model is an agent model or an LLM.
        name:
          type: string
          description: The display name of the model.
        provider:
          type: string
          description: The company that provides the model.
        available:
          type: boolean
          description: >-
            Whether the model runs as requested for the current user and
            teamspace. When `false`, the request is still accepted but a default
            model is used instead.
    RateLimitError:
      type: object
      description: >-
        Returned when the rate limit is exceeded. Rate limits are enforced per
        teamspace, endpoint path, and HTTP method over a 60-second sliding
        window. Each endpoint may have its own limit — check the
        X-RateLimit-Limit response header for the effective value.
      required:
        - error
        - message
        - retryable
        - status_code
      properties:
        status_code:
          type: integer
          description: The HTTP status code (429).
        statusCode:
          type: integer
          deprecated: true
          description: Deprecated. Use status_code instead.
        error:
          type: string
          enum:
            - rate_limit_exceeded
          description: The error code identifying this as a rate limit error.
        message:
          type: string
          description: A human-readable error message.
        mitigation:
          type: string
          description: Suggested action to resolve the error.
        retryable:
          type: boolean
          description: Whether the request can be retried after a delay.
        details:
          type: object
          properties:
            reason:
              type: string
              description: A detailed explanation of why the rate limit was exceeded.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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