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

# Generierungsstatus prüfen

> Dieser Endpunkt liefert den Status eines Generierungsjobs.

## GET /generate/{jobId}

Dieser Endpunkt gibt den aktuellen Status eines Generierungsjobs zurück. Nutzen Sie ihn, um laufende Generierungen zu verfolgen oder Details eines abgeschlossenen Jobs abzurufen.

### Pfadparameter

<ParamField path="jobId" type="string" required>
  Kennung des zu prüfenden Generierungsjobs.
</ParamField>

### Antwort

<ResponseField name="id" type="string">
  Eindeutige Kennung des Generierungsjobs.
</ResponseField>

<ResponseField name="siteId" type="string">
  Kennung der Website, für die generiert wird.
</ResponseField>

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

<ResponseField name="progress" type="number">
  Fortschritt in Prozent (0–100).
</ResponseField>

<ResponseField name="url" type="string">
  URL, für die die Datei erzeugt wird/wurde.
</ResponseField>

<ResponseField name="options" type="object">
  Verwendete Generierungsoptionen.

  <Expandable title="Eigenschaften von options">
    <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="fileUrl" type="string">
  URL zur erzeugten Datei (bei Abschluss).
</ResponseField>

<ResponseField name="fullTextUrl" type="string">
  URL zur Volltextvariante (bei Abschluss).
</ResponseField>

<ResponseField name="error" type="string">
  Fehlermeldung, wenn der Job fehlgeschlagen ist.
</ResponseField>

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

<ResponseField name="completedAt" type="string">
  ISO-8601-Zeitstempel des Job-Abschlusses.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.llmgenerator.com/api/v1/generate/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/generate/550e8400-e29b-41d4-a716-446655440000',
    {
      headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
    }
  );

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

<ResponseExample>
  ```json Processing theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "siteId": "site_abc123",
    "status": "processing",
    "progress": 45,
    "url": "https://example.com",
    "options": {
      "maxUrls": 50,
      "showFullText": true,
      "generationMethod": "enhanced"
    },
    "fileUrl": null,
    "fullTextUrl": null,
    "error": null,
    "createdAt": "2026-01-20T10:00:00.000Z",
    "completedAt": null
  }
  ```

  ```json Completed theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "siteId": "site_abc123",
    "status": "completed",
    "progress": 100,
    "url": "https://example.com",
    "options": {
      "maxUrls": 50,
      "showFullText": true,
      "generationMethod": "enhanced"
    },
    "fileUrl": "https://api.llmgenerator.com/api/v1/file/site_abc123",
    "fullTextUrl": "https://api.llmgenerator.com/api/v1/file/site_abc123?full=true",
    "error": null,
    "createdAt": "2026-01-20T10:00:00.000Z",
    "completedAt": "2026-01-20T10:05:00.000Z"
  }
  ```

  ```json Failed theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "siteId": "site_abc123",
    "status": "failed",
    "progress": 0,
    "url": "https://example.com",
    "options": {
      "maxUrls": 50,
      "showFullText": false,
      "generationMethod": "simple"
    },
    "fileUrl": null,
    "fullTextUrl": null,
    "error": "Failed to fetch sitemap: 404 Not Found",
    "createdAt": "2026-01-20T10:00:00.000Z",
    "completedAt": "2026-01-20T10:00:30.000Z"
  }
  ```
</ResponseExample>
