TokenLab

Worlds

List Worlds

Lists completed World Labs Marble worlds created through TokenLab

POST
/v1/worlds/list

List completed Marble Worlds in the current Workspace.

Use /v1/worlds/generations/{id} for pending or failed generation tasks. This list returns completed worlds that TokenLab has indexed after generation.

Request Body

page_sizeintegerdefault: 20

Number of worlds to return, from 1 to 100.

page_tokenstring

Pagination token from the previous response.

statusstring

Optional filter: SUCCEEDED, PENDING, RUNNING, or FAILED. This endpoint lists completed worlds; the other three values return an empty list. Query generation tasks for their progress.

modelstring

Optional Marble model filter.

tagsarray

Optional tag filter.

is_publicboolean

Optional visibility filter.

created_afterstring

Only return worlds created after this timestamp.

created_beforestring

Only return worlds created before this timestamp.

sort_bystringdefault: created_at

Sort by created_at or updated_at.

sort_orderstringdefault: desc

Sort direction: asc or desc.

Response

worldsarray

Array of world records.

next_page_tokenstring | null

Token for the next page, or null.

Request

curl -X POST "https://api.tokenlab.sh/v1/worlds/list" \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"page_size": 20, "status": "SUCCEEDED", "model": "marble-1.1"}'
{  "worlds": [    {      "display_name": "string",      "world_id": "string",      "world_marble_url": "http://example.com",      "assets": {},      "created_at": "2019-08-24T14:15:22Z",      "model": "string",      "permission": {},      "tags": [        "string"      ],      "updated_at": "2019-08-24T14:15:22Z",      "world_prompt": {}    }  ],  "next_page_token": "string"}

Authorization

BearerAuth
AuthorizationBearer <token>

API Key authentication. Create or manage API keys in Dashboard > API > API Keys.

In: header

Request Body

application/json

Response

application/json

application/json