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

> Retorna o histórico de alterações de todos os squads.

## Endpoint

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

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

## Exemplo (cURL)

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

## Respostas

### 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 — 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.                         |
| squadId     | string | Identificador do squad associado ao evento.                         |
| responsible | string | Nome/usuário responsável pela alteração.                            |
| action      | string | Ação registrada (ex.: created squad, updated squad, deleted squad). |
| type        | string | Classificação do evento (`success`, `fail`, `neutral`).             |
| date        | Date   | Data e hora da alteração.                                           |
