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

# Website-Details abrufen

> Dieser Endpunkt liefert die Details einer bestimmten Website.

## GET /sites/{siteId}

Dieser Endpunkt gibt ausführliche Informationen zu einer einzelnen Website zurück, einschließlich Status, Datei-URLs und den Optionen der letzten Generierung.

### Pfadparameter

<ParamField path="siteId" type="string" required>
  Kennung der abzurufenden Website.
</ParamField>

### Antwort

<ResponseField name="id" type="string">
  Eindeutige Kennung der Website.
</ResponseField>

<ResponseField name="url" type="string">
  Normalisierte URL der Website.
</ResponseField>

<ResponseField name="userId" type="string">
  Kennung des Nutzers, dem die Website gehört.
</ResponseField>

<ResponseField name="status" type="string">
  Aktueller Status: `pending`, `processing`, `completed` oder `failed`.
</ResponseField>

<ResponseField name="fileUrl" type="string">
  URL zur erzeugten llms.txt-Datei.
</ResponseField>

<ResponseField name="fullTextUrl" type="string">
  URL zur Volltextvariante (falls verfügbar).
</ResponseField>

<ResponseField name="lastGenerationOptions" type="object">
  Bei der letzten Generierung verwendete Optionen.

  <Expandable title="Eigenschaften von lastGenerationOptions">
    <ResponseField name="maxUrls" type="number">
      Maximale verarbeitete URLs.
    </ResponseField>

    <ResponseField name="showFullText" type="boolean">
      Ob Volltext eingeschlossen wurde.
    </ResponseField>

    <ResponseField name="generationMethod" type="string">
      Verwendete Methode: `simple` oder `enhanced`.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="createdAt" type="string">
  ISO-8601-Zeitstempel der Website-Erstellung.
</ResponseField>

<ResponseField name="updatedAt" type="string">
  ISO-8601-Zeitstempel der letzten Aktualisierung.
</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>
