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

# Obtener detalles del sitio

> Este extremo devuelve los detalles de un sitio concreto.

## GET /sites/{siteId}

Este extremo devuelve información detallada de un solo sitio, incluidos el estado, las URL de los archivos y las últimas opciones de generación.

### Parámetros de ruta

<ParamField path="siteId" type="string" required>
  Identificador del sitio a consultar.
</ParamField>

### Respuesta

<ResponseField name="id" type="string">
  Identificador único del sitio.
</ResponseField>

<ResponseField name="url" type="string">
  URL normalizada del sitio.
</ResponseField>

<ResponseField name="userId" type="string">
  Identificador del usuario propietario del sitio.
</ResponseField>

<ResponseField name="status" type="string">
  Estado actual: `pending`, `processing`, `completed` o `failed`.
</ResponseField>

<ResponseField name="fileUrl" type="string">
  URL para acceder al archivo llms.txt generado.
</ResponseField>

<ResponseField name="fullTextUrl" type="string">
  URL para acceder a la versión de texto completo (si está disponible).
</ResponseField>

<ResponseField name="lastGenerationOptions" type="object">
  Opciones utilizadas en la última generación.

  <Expandable title="Propiedades de lastGenerationOptions">
    <ResponseField name="maxUrls" type="number">
      Número máximo de URL procesadas.
    </ResponseField>

    <ResponseField name="showFullText" type="boolean">
      Si se incluyó texto completo.
    </ResponseField>

    <ResponseField name="generationMethod" type="string">
      Método utilizado: `simple` o `enhanced`.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="createdAt" type="string">
  Marca de tiempo ISO 8601 de creación del sitio.
</ResponseField>

<ResponseField name="updatedAt" type="string">
  Marca de tiempo ISO 8601 de la última actualización.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.llmgenerator.com/api/v1/sites/550e8400-e29b-41d4-a716-446655440000 \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://api.llmgenerator.com/api/v1/sites/550e8400-e29b-41d4-a716-446655440000',
    {
      headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
    }
  );

  const data = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "url": "https://example.com",
    "userId": "user_abc123",
    "status": "completed",
    "fileUrl": "https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000",
    "fullTextUrl": "https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000?full=true",
    "lastGenerationOptions": {
      "maxUrls": 50,
      "showFullText": true,
      "generationMethod": "enhanced"
    },
    "createdAt": "2026-01-15T10:00:00.000Z",
    "updatedAt": "2026-01-20T14:30:00.000Z"
  }
  ```

  ```json Not Found (404) theme={null}
  {
    "message": "Site not found"
  }
  ```

  ```json Forbidden (403) theme={null}
  {
    "message": "Access denied to this site"
  }
  ```
</ResponseExample>
