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

# List inventory models

> List all inventory models in the workspace.



## OpenAPI

````yaml https://api.enokilabs.ai/openapi.json get /api/v1/model
openapi: 3.1.0
info:
  title: Enoki External API
  description: >-
    Programmatic API for CI/CD integration. Authenticate with `Authorization:
    Bearer egk_...`.
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/model:
    get:
      tags:
        - integration
      summary: List inventory models
      description: List all inventory models in the workspace.
      operationId: api_list_models_api_v1_model_get
      parameters:
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Bearer token with API key
            title: Authorization
          description: Bearer token with API key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiModelListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ApiModelListResponse:
      properties:
        models:
          items:
            $ref: '#/components/schemas/ApiModelItem'
          type: array
          title: Models
      type: object
      required:
        - models
      title: ApiModelListResponse
      description: Response for GET /api/v1/model.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ApiModelItem:
      properties:
        model_id:
          type: string
          title: Model Id
        name:
          type: string
          title: Name
        model_type:
          type: string
          title: Model Type
        environment:
          type: string
          title: Environment
        has_agent_config:
          type: boolean
          title: Has Agent Config
        latest_run_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Latest Run Status
        endpoint_host:
          anyOf:
            - type: string
            - type: 'null'
          title: Endpoint Host
          description: >-
            Hostname of the configured endpoint — host only, never the full URL
            (URLs can embed credentials in query strings or paths). None when
            the target has no agent config or its stored URL has no parseable
            hostname, so treat a null host as no-match rather than equal to
            another null. With name and environment, this is the duplicate-check
            key before registering a new target.
      type: object
      required:
        - model_id
        - name
        - model_type
        - environment
        - has_agent_config
      title: ApiModelItem
      description: One inventory model in the external API response.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````