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

# Datei herunterladen

> Dieser Endpunkt lädt die erzeugte llms.txt-Datei herunter.

## GET /file/{siteId}/download

Mit diesem Endpunkt laden Sie die `llms.txt`-Datei einer Website herunter. Der Header `Content-Disposition` löst im Browser einen Download aus. Öffentlicher Endpunkt ohne Authentifizierung.

### Pfadparameter

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

### Abfrageparameter

<ParamField query="full" type="boolean" default="false">
  Bei `true` wird die Variante mit Volltext jeder Seite heruntergeladen.
</ParamField>

### Antwort

Die Antwort ist die Datei `llms.txt` mit passenden Headern:

* Content-Type: `text/plain; charset=utf-8`
* Content-Disposition: `attachment; filename="{hostname}-llms.txt"`
* Cache-Control: `public, max-age=300`

Der Dateiname wird aus dem Hostnamen der Website abgeleitet (z. B. `example-com-llms.txt` bzw. `example-com-llms-full.txt` für die Volltextvariante).

<RequestExample>
  ```bash cURL (Standard) theme={null}
  curl -X GET https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000/download \
    -o llms.txt
  ```

  ```bash cURL (Full Text) theme={null}
  curl -X GET "https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000/download?full=true" \
    -o llms-full.txt
  ```

  ```javascript JavaScript theme={null}
  // Trigger download in browser
  const downloadUrl = 'https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000/download';
  window.location.href = downloadUrl;
  ```
</RequestExample>
