Skip to content
Get a mount

Get a mount

Read a mount's path, scope, target, description, settings, and size.

GET/api/v1/mounts/:mountId

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/mounts/0199a1c4-5b6e-7a10-9c2d-3e4f5a6b7c8d", {
  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#

mountIdUUIDrequired

The mount's ID, returned as id when the mount was created.

Responses#

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.

200 response
{
  "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"
}
More about this endpoint

fileCount counts files, not folders. totalBytes is the size of all its files together; a mount holds at most 64 MiB and 10,000 files and folders.