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

# Erzeugte Datei abrufen

> Dieser Endpunkt liefert den Inhalt einer erzeugten llms.txt-Datei.

## GET /file/{siteId}

Dieser Endpunkt gibt den Inhalt der `llms.txt`-Datei einer Website zurück. Öffentlicher Endpunkt ohne Authentifizierung – die Datei-URL kann direkt in Ihre Website eingebunden werden.

<Note>
  Die Antwort enthält CORS-Header (`Access-Control-Allow-Origin: *`) für Cross-Origin-Zugriff und wird 5 Minuten zwischengespeichert.
</Note>

### Pfadparameter

<ParamField path="siteId" type="string" required>
  Kennung der Website, deren Datei abgerufen werden soll.
</ParamField>

### Abfrageparameter

<ParamField query="full" type="boolean" default="false">
  Bei `true` wird die Variante mit Volltextinhalt jeder Seite zurückgegeben. Nützlich für große KI-Kontextfenster.
</ParamField>

### Antwort

Die Antwort ist der Klartextinhalt der Datei `llms.txt` mit:

* Content-Type: `text/plain; charset=utf-8`
* Cache-Control: `public, max-age=300`

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

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

  ```javascript JavaScript theme={null}
  // Fetch and display llms.txt content
  const response = await fetch(
    'https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000'
  );
  const content = await response.text();
  console.log(content);
  ```
</RequestExample>

<ResponseExample>
  ```text Standard llms.txt theme={null}
  # Example Domain
  > An example domain for use in documentation and examples.

  ## Pages

  - [Home](https://example.com/): The main landing page for Example Domain.
  - [About](https://example.com/about): Learn more about Example Domain and its purpose.
  - [Contact](https://example.com/contact): Get in touch with the Example Domain team.
  ```

  ```text Full Text Version theme={null}
  # Example Domain
  > An example domain for use in documentation and examples.

  ## Pages

  ### Home
  URL: https://example.com/

  Welcome to Example Domain. This domain is for use in illustrative examples in documents...

  ---

  ### About
  URL: https://example.com/about

  Example Domain was established to provide a safe space for documentation examples...
  ```
</ResponseExample>
