List mounts
List your workspace's mounts, one page at a time, optionally only those of one scope, group, or user.
/api/v1/mountsconst response = await fetch("https://api.smallworld.sh/api/v1/mounts?scope=group&groupId=team_42&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#
scopestringOnly mounts with this scope: global, group, or user.
groupIdstringOnly the mounts of this group, by your application's group ID.
userIdstringOnly the user mounts of this user, by your application's user ID. To see every mount a user gets, including global and group mounts, use GET /users/:userId/mounts.
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. Returns id, path, scope (global, group, or user), groupId (your group ID, for a group mount), userId (your user ID, for a user mount), nullable description, settings with create, update, delete, move, and rename (each allow, ask, or deny), fileCount (files, not folders), totalBytes, and ISO 8601 createdAt and updatedAt timestamps. groupId and userId are null when they don't apply. nextCursor is null on the final page.
{
"items": [
{
"id": "0199a1c4-5b6e-7a10-9c2d-3e4f5a6b7c8d",
"path": "/workspace/docs",
"scope": "group",
"groupId": "team_42",
"userId": null,
"description": "Product documentation. Answers to customer questions go in faq.md.",
"settings": {
"create": "allow",
"update": "ask",
"delete": "ask",
"move": "ask",
"rename": "ask"
},
"fileCount": 2,
"totalBytes": 91,
"createdAt": "2026-10-10T12:00:00.000Z",
"updatedAt": "2026-10-10T12:00:00.000Z"
}
],
"nextCursor": null
}
More about this endpoint
A cursor works only for the list and workspace that returned it.
An unknown groupId or userId returns 404 instead of an empty list.