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

# List Squad Versions

> Lists all registered versions of a squad.

## Endpoint

`GET https://gateway.orkeia.ai/squads/{id}/version-control`

**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/version-control" \
  -H "authorization:  <your_token>"
```

## Responses

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": [
    { "version": 1, "timestamp": "2024-07-01T12:00:00Z" },
    { "version": 2, "timestamp": "2024-07-10T09:30: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
}
```

## Fields

| Field     | Type   | Description                              |
| --------- | ------ | ---------------------------------------- |
| version   | number | Sequential number of the squad version.  |
| timestamp | string | Date and time of version creation (ISO). |
