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

# Listar Versões do Squad

> Lista todas as versões registradas de um squad.

## Endpoint

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

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

## Parâmetros de Caminho

| Nome | Tipo   | Obrigatório | Descrição                     | Exemplo     |
| ---- | ------ | ----------- | ----------------------------- | ----------- |
| id   | string | Sim         | Identificador único do squad. | SQUAD\_1234 |

## Exemplo (cURL)

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

## Respostas

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

## Campos

| Campo     | Tipo   | Descrição                               |
| --------- | ------ | --------------------------------------- |
| version   | number | Número sequencial da versão do squad.   |
| timestamp | string | Data e hora da criação da versão (ISO). |
