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

> Devuelve la lista de escuadras registradas.

## Endpoint

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

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

## Ejemplo (cURL)

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

## Respuestas

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": [
    {
      "id": "SQUAD_1234",
      "name": "Equipo Alpha",
      "description": "Equipo responsable de integraciones",
      "enabled": true,
      "createdAt": "2024-07-15T14:25:18.000Z"
    }
  ]
}
```

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

## Campos

| Campo       | Tipo    | Descripción                  |
| ----------- | ------- | ---------------------------- |
| id          | string  | ID de la escuadra            |
| name        | string  | Nombre                       |
| description | string  | Descripción                  |
| enabled     | boolean | Si está habilitado           |
| createdAt   | string  | Fecha de creación (ISO 8601) |
