---
title: "List inventory models"
method: GET
path: "/api/v1/model"
tags: ["integration"]
---

# List inventory models

`GET /api/v1/model`

## Request

- Base URL: `https://api.enokilabs.ai`
- URL: `https://api.enokilabs.ai/api/v1/model`
- Auth: none declared

List all inventory models in the workspace.

## Headers

- `Authorization` string, nullable: Bearer token with API key

## Response `200`

Successful Response

- ApiModelListResponse: Response for GET /api/v1/model.
  - `models` ApiModelItem[], required
    - `model_id` string, required
    - `name` string, required
    - `model_type` string, required
    - `environment` string, required
    - `has_agent_config` boolean, required
    - `latest_run_status` string, nullable
    - `endpoint_host` string, nullable: 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.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/enokilabs/apis/enoki-external-api.md) · [All operations](https://skmtc.dev/enokilabs/apis/enoki-external-api/llms.txt) · [OpenAPI document](https://skmtc.dev/enokilabs/apis/enoki-external-api/revisions/9b13fb6ab124?raw)
