> ## Documentation Index
> Fetch the complete documentation index at: https://locatebyteli.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Listar comandos

> Lista los comandos disponibles para el modelo del dispositivo

## Authorization

<ParamField header="Authorization" type="string" required default="Bearer ">
  API Key. Formato: `Bearer lbt_•••`
</ParamField>

## Path Parameters

<ParamField path="id" type="uuid" required>
  ID del dispositivo
</ParamField>

## Respuesta

Array de comandos disponibles:

<ResponseField name="id" type="uuid">
  ID del comando
</ResponseField>

<ResponseField name="name" type="string">
  Nombre legible del comando
</ResponseField>

<ResponseField name="widget" type="object">
  Configuración del widget UI para el comando
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Apagar motor",
      "widget": {
        "type": "button",
        "label": "Apagar",
        "confirm": true,
        "confirm_message": "¿Estás seguro de apagar el motor?"
      }
    },
    {
      "id": "660e8400-e29b-41d4-a716-446655440000",
      "name": "Encender motor",
      "widget": {
        "type": "button",
        "label": "Encender",
        "confirm": true
      }
    },
    {
      "id": "770e8400-e29b-41d4-a716-446655440000",
      "name": "Configurar APN",
      "widget": {
        "type": "form",
        "fields": [
          { "name": "apn", "type": "text", "label": "APN" },
          { "name": "user", "type": "text", "label": "Usuario" },
          { "name": "password", "type": "password", "label": "Contraseña" }
        ]
      }
    }
  ]
  ```
</ResponseExample>
