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

# Models history id

## Endpoint

`GET https://gateway.orkeia.ai/ai-models/{id}/history`

## Encabezados

Requiere el encabezado `authorization:  <su_token>`.

```http theme={null}
authorization:  <su_token>
Content-Type: application/json
```

## Parámetros de ruta

* `id` — ID del modelo (ej.: `MODEL_67890`)

## Query string

| Nombre    | Tipo            | Obligatorio | Descripción                       | Ejemplo     |
| --------- | --------------- | ----------- | --------------------------------- | ----------- |
| last      | string          | No          | Cursor/offset de la última página | "hist\_010" |
| limit     | string          | No          | Cantidad por página               | "20"        |
| field     | string          | No          | Campo para ordenación             | "date"      |
| direction | "asc" \| "desc" | No          | Dirección de la ordenación        | "desc"      |

## Cuerpo de la solicitud

```json theme={null}
{
  "environment": {
    "company": "acme-inc",
    "sector": "engineering"
  }
}
```

## Respuesta (200)

```json theme={null}
{
"status": "ok", 
"data": {
  "items": [
    {
      "id": "hist_021",
      "responsible": "João Vitor",
      "responsibleId": "user_123",
      "action": "actualizó el modelo de IA",
      "type": "neutral",
      "date": "2025-08-22T19:15:10.000Z",
      "versionControl": "v1.0.1"
    }
  ]
}
```

## Códigos de error

### 500 — Error del Servidor

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Error del Cliente

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
