> ## 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 Geral das Bases de Conhecimento

> Retorna o histórico de alterações de todas as bases de conhecimento.

## Endpoint

`GET https://gateway.orkeia.ai/knowledge-bases/history`

**Autenticação**\
Requer cabeçalho `authorization:  <seu_token>`.

## Exemplo (cURL)

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

## Respostas

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": [
    {
      "id": "hist_001",
      "kbId": "KB_123456",
      "responsible": "Sistema",
      "action": "created knowledge base",
      "type": "success",
      "date": "2024-07-01T12:00:00Z",
      "versionControl": "v1.0.0"
    }
  ]
}
```

### 500 — Server Error

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

### 400 — Client Error

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

## Campos do Histórico

| Nome           | Tipo   | Descrição                                                   |
| -------------- | ------ | ----------------------------------------------------------- |
| id             | string | Identificador único do evento de histórico.                 |
| kbId           | string | Identificador da base de conhecimento associada ao evento.  |
| responsible    | string | Nome do responsável pela alteração.                         |
| action         | string | Ação registrada (ex.: created, updated, deleted).           |
| type           | string | Classificação do evento (`success`, `fail`, `neutral`).     |
| date           | Date   | Data e hora da alteração.                                   |
| versionControl | string | Identificador da versão associada ao evento (se aplicável). |
