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

# Histórico do Agente

> Retorna o histórico de alterações de um agente específico.

## Endpoint

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

## Cabeçalhos

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

### Parâmetros de caminho

Necessario passar via query params o id do agente

```json theme={null}
{
  "id": "ID do agente (obrigatório)"
}
```

### Exemplo (cURL)

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

## Respostas

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