> ## 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

## Endpoint

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

## Encabezados

Requiere el encabezado `authorization:  <su_token>`.

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

## Query string

| Parámetro   | Tipo       | Obligatorio | Descripción                             | Ejemplo      |
| ----------- | ---------- | ----------- | --------------------------------------- | ------------ |
| `last`      | `string`   | No          | Cursor/offset de la última página leída | `"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_001",
      "responsible": "Sistema",
      "responsibleId": "system",
      "action": "created ai model",
      "type": "neutral",
      "date": "2025-08-22T18:32:45.000Z",
      "versionControl": "v1.0.0"
    }
  ],
  "next": "hist_010"
}
```

## 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
}
```
