List Worlds
List the Worlds owned by your workspace, one page at a time.
GET
/api/v1/worldsconst response = await fetch("https://api.smallworld.sh/api/v1/worlds?limit=50", {
method: "GET",
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();
Use your server-side apiKey. Replace the example IDs.
Query parameters#
cursorstringThe opaque nextCursor from a previous page of this same resource and workspace. Omit for the first page.
limitintegerNumber of items to return, from 1 to 100. Defaults to 50.
Responses#
Returns items and nextCursor. Each World has id, name, description, createdAt, and updatedAt. An unset description is an empty string. nextCursor is null on the final page.
{
"items": [
{
"id": "01995e56-e2d4-7f19-b691-7bf9af6abdc8",
"name": "Customer support",
"description": "An environment for your support agent.",
"createdAt": "2026-10-10T12:00:00.000Z",
"updatedAt": "2026-10-10T12:00:00.000Z"
}
],
"nextCursor": null
}
More about this endpoint
Create Worlds with POST /worlds. Read, update, and delete an individual World through /worlds/:id. Configure integration assignments through /worlds/:worldId/integrations.