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

# 列出 Worlds

> 列出通过 AI Sonar 创建的已完成 World Labs Marble 世界

列出通过 AI Sonar 创建的已完成 World Labs Marble 世界。结果按你的组织隔离；AI Sonar 不会暴露其他账号的数据。

待处理或失败的生成任务请使用 `/v1/worlds/generations/{id}`。此列表只返回生成完成后已被 AI Sonar 索引的世界。

## 请求体

<ParamField body="page_size" type="integer" default="20">
  返回的 world 数量，范围 1 到 100。
</ParamField>

<ParamField body="page_token" type="string">
  上一页响应返回的分页 token。
</ParamField>

<ParamField body="status" type="string">
  可选状态过滤。AI Sonar 对 `SUCCEEDED` 返回已完成 worlds；其他状态属于生成任务端点。
</ParamField>

<ParamField body="model" type="string">
  可选 Marble 模型过滤。
</ParamField>

<ParamField body="tags" type="array">
  可选标签过滤。
</ParamField>

<ParamField body="is_public" type="boolean">
  可选可见性过滤。
</ParamField>

<ParamField body="created_after" type="string">
  只返回晚于该时间创建的 worlds。
</ParamField>

<ParamField body="created_before" type="string">
  只返回早于该时间创建的 worlds。
</ParamField>

<ParamField body="sort_by" type="string" default="created_at">
  按 `created_at` 或 `updated_at` 排序。
</ParamField>

<ParamField body="sort_order" type="string" default="desc">
  排序方向：`asc` 或 `desc`。
</ParamField>

## 响应

<ResponseField name="worlds" type="array">
  World 记录数组。
</ResponseField>

<ResponseField name="next_page_token" type="string">
  下一页 token，或 `null`。
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.aisonar.dev/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"}'
  ```

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

  response = requests.post(
      "https://api.aisonar.dev/v1/worlds/list",
      headers={"Authorization": "Bearer sk-your-api-key"},
      json={"page_size": 20, "status": "SUCCEEDED", "model": "marble-1.1"},
  )
  print(response.json()["worlds"])
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.aisonar.dev/v1/worlds/list', {
    method: 'POST',
    headers: {
      Authorization: 'Bearer sk-your-api-key',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ page_size: 20, status: 'SUCCEEDED', model: 'marble-1.1' })
  });
  console.log((await response.json()).worlds);
  ```
</RequestExample>
