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

# Squad History

> Returns the change history of a specific squad.

## Endpoint

`GET https://gateway.orkeia.ai/squads/{id}/history`

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

## Path Parameters

| Name | Type   | Required | Description                     | Example     |
| ---- | ------ | -------- | ------------------------------- | ----------- |
| id   | string | Yes      | Unique identifier of the squad. | SQUAD\_1234 |

## Example (cURL)

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

## Responses

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": [
    {
      "id": "hist_002",
      "squadId": "SQUAD_1234",
      "action": "updated squad",
      "type": "neutral",
      "date": "2024-07-01T13: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.                     |
| 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.                                           |
