> ## 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 General de las Bases de Conocimiento

> Devuelve el historial de cambios de todas las bases de conocimiento.

## Endpoint

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

**Autenticación**\
Requiere el encabezado `authorization:  <tu_token>`.

## Ejemplo (cURL)

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

## Respuestas

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

## Campos del Historial

| Nombre         | Tipo   | Descripción                                                       |
| -------------- | ------ | ----------------------------------------------------------------- |
| id             | string | Identificador único del evento de historial.                      |
| kbId           | string | Identificador de la base de conocimiento asociada al evento.      |
| responsible    | string | Nombre del responsable por el cambio.                             |
| action         | string | Acción registrada (ej.: created, updated, deleted).               |
| type           | string | Clasificación del evento (`success`, `fail`, `neutral`).          |
| date           | Date   | Fecha y hora del cambio.                                          |
| versionControl | string | Identificador de la versión asociada al evento (si es aplicable). |
