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

# Obtener Versión del Squad

> Devuelve el snapshot de una versión específica del squad.

## Endpoint

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

**Autenticación**\
Requiere el encabezado `authorization:  <tu_token>`.

## Parámetros de Camino

| Nombre    | Tipo   | Obligatorio | Descripción                                    | Ejemplo     |
| --------- | ------ | ----------- | ---------------------------------------------- | ----------- |
| id        | string | Sí          | Identificador único del squad.                 | SQUAD\_1234 |
| versionId | string | Sí          | Identificador/slug de la versión del snapshot. | v1.0.1      |

## Ejemplo (cURL)

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

## Respuestas

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": {
    "id": "SQUAD_1234",
    "snapshot": {
      "name": "Equipo Alpha",
      "tasks": [
        {
          "id": "TASK_INGEST",
          "agent": "AGENT_INGEST",
          "name": "Ingestión de Datos",
          "objective": "Recolectar y normalizar datos de fuente externa",
          "dependsOn": [],
          "coordinates": { "x": 80, "y": 40, "width": 320, "height": 160 }
        }
      ],
      "order": "sequential",
      "enabled": true,
      "do_plan": false,
      "sectors": ["engineering"],
      "publisher": "Orkeia",
      "planningAgent": { "id": "AGENT_PLANNER" },
      "supervisor": { "id": "AGENT_SUPERVISOR" }
    },
    "versionId": "v1.0.1",
    "createdAt": "2024-07-10T09:30:00Z"
  }
}
```

### 500 — Error del Servidor

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Error del Cliente

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
