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

# General Squad History

> Returns the change history of all squads.

## Endpoint

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

**Authentication**\
Requires header `authorization:  <your_token>`.

## Example (cURL)

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

## Responses

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

## History Fields

| Name        | Type   | Description                                                            |
| ----------- | ------ | ---------------------------------------------------------------------- |
| id          | string | Unique identifier of the history event.                                |
| squadId     | string | Identifier of the squad associated with the event.                     |
| responsible | string | Name/username responsible for the change.                              |
| action      | string | Registered action (e.g., created squad, updated squad, deleted squad). |
| type        | string | Event classification (`success`, `fail`, `neutral`).                   |
| date        | Date   | Date and time of the change.                                           |
