Create a group
Register a group of users who can share connections. Repeating this request returns the same group without changing it.
/api/v1/groupsconst response = await fetch("https://api.smallworld.sh/api/v1/groups", {
method: "POST",
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({
"groupId": "team_42",
"name": "Support team"
}),
});
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.
Request body#
groupIdstringrequiredYour group's unique identifier in this workspace. At most 512 characters, without surrounding whitespace or null bytes. It can't be changed later.
namestring | nullOptional display name, 1 to 120 characters after trimming, without control characters. Omit or send null for no name.
Responses#
The group was created without members. Add users, then connect integrations for it.
{
"id": "team_42",
"name": "Support team",
"system": false,
"memberCount": 0,
"createdAt": "2026-10-10T12:00:00.000Z",
"updatedAt": "2026-10-10T12:00:00.000Z"
}
More about this endpoint
Returns 201 when created, or 200 when this ID already exists. A repeated request keeps the stored name, even if you supply a different one; rename with PATCH.
Create groups from your backend through this endpoint. The dashboard shows ordinary groups as read-only. The other group endpoints, POST /users with groupId or groupIds, and adding or moving a member return group_not_found for an unknown group and create nothing.
A user can belong to several groups. A group has no connections until you connect one for it.