Skip to content
List groups

List groups

List your workspace's groups, one page at a time.

GET/api/v1/groups

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/groups?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#

cursorstring

The opaque nextCursor from a previous page of this same resource and workspace. Omit for the first page.

limitinteger

Number of items to return, from 1 to 100. Defaults to 50.

Responses#

Returns items and nextCursor. Returns id (your group ID), nullable name, system, memberCount, and ISO 8601 createdAt and updatedAt timestamps. system is true only for the dashboard's Playground Group. nextCursor is null on the final page.

200 response
{
  "items": [
    {
      "id": "team_42",
      "name": "Support team",
      "system": false,
      "memberCount": 2,
      "createdAt": "2026-10-10T12:00:00.000Z",
      "updatedAt": "2026-10-10T12:00:00.000Z"
    }
  ],
  "nextCursor": null
}
More about this endpoint

The list includes the dashboard's Playground Group, with system: true. Its name and membership are fixed and it can't be deleted. Its tool overrides remain editable for testing; ordinary groups are managed through the API.