Skip to content
Get a World

Get a World

Read a World owned by your workspace.

GET/api/v1/worlds/:id

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/worlds/01995e56-e2d4-7f19-b691-7bf9af6abdc8", {
  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.

Path parameters#

idUUIDrequired

The World ID returned by POST /worlds or GET /worlds.

Responses#

Returns id, name, description, iconSeed, createdAt, and updatedAt.

200 response
{
  "id": "01995e56-e2d4-7f19-b691-7bf9af6abdc8",
  "name": "Customer support",
  "description": "An environment for your support agent.",
  "iconSeed": "01995e56-e2d4-7f19-b691-7bf9af6abdc8",
  "createdAt": "2026-10-10T12:00:00.000Z",
  "updatedAt": "2026-10-10T12:00:00.000Z"
}