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

> Devuelve el historial de cambios de todos los squads.

## Endpoint

`GET https://gateway.orkeia.ai/squads/history`

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

## Ejemplo (cURL)

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

## Respuestas

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": [
    {
      "id": "hist_001",
      "squadId": "SQUAD_1234",
      "responsible": "admin@orkeia.ai",
      "action": "created squad",
      "type": "success",
      "date": "2024-07-01T12:00:00Z"
    }
  ]
}
```

### 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.                          |
| squadId     | string | Identificador del squad asociado al evento.                           |
| responsible | string | Nombre/usuario responsable por la alteración.                         |
| action      | string | Acción registrada (ej.: created squad, updated squad, deleted squad). |
| type        | string | Clasificación del evento (`success`, `fail`, `neutral`).              |
| date        | Date   | Fecha y hora de la alteración.                                        |
