Worlds
Get World Status
Retrieves the status and result of a World Labs Marble world generation task
Poll this endpoint to check the status of a World Labs Marble generation task. If the create response included poll_url, prefer calling that exact URL.
An expired or unavailable public task can return 404 async_task_not_found. If task ownership cannot be established for the current API key, the response is 403 task_not_owned.
Path Parameters
World generation task ID.
Response
Only id and status are required in a successful status response. Task aliases, operation IDs, world assets, captions, cost, and the string error are returned when available. A completed task does not guarantee that every asset URL is present.
Public task ID.
Async task identifier alias.
World Labs operation ID.
Task status: pending, processing, completed, failed, or timeout.
World Labs world ID when completed.
URL for the generated Marble world when completed.
Alias for the primary generated world/model URL.
Collider mesh GLB URL when available.
Panorama image URL when available.
Thumbnail image URL when available.
Caption for the generated world.
Generation cost details when available, including total_credits. Check your usage records for the billed amount.
Error message when the task failed.
Request
curl --fail-with-body "https://api.tokenlab.sh/v1/worlds/generations/ldtask_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
-H "Authorization: Bearer sk-your-api-key"{ "id": "string", "task_id": "string", "operation_id": "string", "status": "pending", "world_id": "string", "world_marble_url": "string", "model_url": "string", "glb_url": "string", "pano_url": "string", "thumbnail_url": "string", "caption": "string", "cost": {}, "error": "string", "error_details": { "projection_version": 0, "status": 400, "message": "string", "type": "string", "code": "string", "param": "string", "retryable": true, "upstream": { "source": "string", "code": "string", "message": "string", "param": "string" } }}Authorization
BearerAuth API Key authentication. Create or manage API keys in Dashboard > API > API Keys.
In: header
Path Parameters
World generation task ID.
Response
application/json
application/json
application/json