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

# Listar Versiones del Agente

> Lista todas las versiones registradas de un agente.

## Endpoint

`GET https://gateway.orkeia.ai/agents/{id}/version-control`

## Cabeçalhos

```
authorization:  <tu_token>
Content-Type: application/json
```

### Parámetros de camino

```json theme={null}
{
  "id": "ID del agente (obligatorio)"
}
```

### Ejemplo (cURL)

```bash theme={null}
curl -X GET "https://gateway.orkeia.ai/agents/agent123/version-control" \
  -H "authorization:  <tu_token>"
```

## Respuestas

### Response - Éxito

```json theme={null}
{ "status": "OK",
  "data":[ {
    "id": "hist_001",
    "responsible": "Equipo de desarrollo de Orkeia",
    "responsibleId": "user_123",
    "action": "Creado agente de soporte",
    "type": "success",
    "date": "2025-08-22T18:32:45.000Z",
    "versionControl": "v1.0.0"
  }, {
    "id": "hist_002",
    "responsible": "Equipo de desarrollo de Orkeia",
    "responsibleId": "user_123",
    "action": "Eliminado agente de soporte",
    "type": "success",
    "date": "2025-08-22T18:32:45.000Z",
    "versionControl": "v1.3.0"
  },
],
}
```

### 500 — Solicitud Incorrecta

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

### 400 — Error del Cliente

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