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

# Historial del Agente

> Devuelve el historial de cambios de un agente específico.

## Endpoint

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

## Encabezados

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

### Parámetros de la ruta

Es necesario pasar el id del agente a través de query params

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

### Ejemplo (cURL)

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

## Respuestas

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": {
    "id": "evt2",
    "agentId": "agent123",
    "action": "updated",
    "timestamp": "2024-07-01T13:00:00Z"
  }
}
```

### 500 — Bad Request

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

### 400 — Client Error

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