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

# World-Status abrufen

> Ruft Status und Ergebnis einer World Labs Marble-Weltgenerierungsaufgabe ab

Pollen Sie diesen Endpoint, um den Status einer World Labs Marble-Generierungsaufgabe zu prüfen. Wenn die Create-Response `poll_url` enthält, verwenden Sie bevorzugt genau diese URL.

## Pfadparameter

<ParamField path="id" type="string" required>
  Weltgenerierungs-Task-ID.
</ParamField>

## Antwort

<ResponseField name="id" type="string">
  Öffentliche Task-ID.
</ResponseField>

<ResponseField name="task_id" type="string">
  Alias für die Async-Task-ID.
</ResponseField>

<ResponseField name="operation_id" type="string">
  World-Labs-Vorgangs-ID.
</ResponseField>

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

<ResponseField name="world_id" type="string">
  World-Labs-Welt-ID nach Abschluss.
</ResponseField>

<ResponseField name="world_marble_url" type="string">
  URL der generierten Marble-Welt nach Abschluss.
</ResponseField>

<ResponseField name="model_url" type="string">
  Alias für die primäre generierte Welt-/Modell-URL.
</ResponseField>

<ResponseField name="glb_url" type="string">
  Collider-Mesh-GLB-URL, sofern verfügbar.
</ResponseField>

<ResponseField name="pano_url" type="string">
  Panorama-Bild-URL, sofern verfügbar.
</ResponseField>

<ResponseField name="thumbnail_url" type="string">
  Thumbnail-Bild-URL, sofern verfügbar.
</ResponseField>

<ResponseField name="caption" type="string">
  Upstream-caption für die generierte Welt.
</ResponseField>

<ResponseField name="cost" type="object">
  Upstream operation cost details, sofern verfügbar, einschließlich `total_credits`.
</ResponseField>

<ResponseField name="error" type="string">
  Fehlermeldung bei fehlgeschlagenem Task.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.tokenlab.sh/v1/worlds/generations/ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
    -H "Authorization: Bearer sk-your-api-key"
  ```

  ```python Python theme={null}
  import requests
  import time

  task_id = "ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

  while True:
      response = requests.get(
          f"https://api.tokenlab.sh/v1/worlds/generations/{task_id}",
          headers={"Authorization": "Bearer sk-your-api-key"},
      )
      result = response.json()
      if result["status"] in ["completed", "failed", "timeout"]:
          print(result)
          break
      time.sleep(10)
  ```

  ```javascript JavaScript theme={null}
  const taskId = 'ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
  const response = await fetch(`https://api.tokenlab.sh/v1/worlds/generations/${taskId}`, {
    headers: { Authorization: 'Bearer sk-your-api-key' }
  });

  const result = await response.json();
  console.log(result.status, result.world_marble_url);
  ```
</RequestExample>
