spaces module covers the space lifecycle and navigation: creating spaces, looking them up by ID, slug, or short ID, updating settings, and traversing parent-child hierarchies.
For membership management see Space Members, and for moderation, rules, and digest configuration see Space Moderation.
createSpace
Creates a new space.Display name for the space.
URL-friendly identifier. Must be unique within the project. Generated from
name if omitted.Short description of the space.
Who can read content:
"anyone" or "members".Who can post content:
"anyone", "members", or "admins".When
true, join requests must be manually approved.Makes this space a child of the specified parent space.
Arbitrary metadata attached to the space.
Promise<Space>
fetchSpace
Fetches a single space, including detailed information, by its ID.The Sublay space ID.
Promise<SpaceDetailed>
fetchManySpaces
Fetches a paginated, filterable list of spaces.The page number to fetch.
The number of spaces to return per page.
Sort order:
"alphabetical", "newest", or "members".Filter by matching slug.
Filter by matching name.
Filter by matching description.
Filter by matching across slug, name, and description.
Pass
"true" to return only spaces you belong to.Filter by parent space. Pass
"null" for top-level spaces.Comma-separated related resources to include in the response.
Promise<PaginatedResponse<Space>>
fetchSpaceBySlug
Fetches a detailed space by its slug.The space slug.
Promise<SpaceDetailed>
fetchSpaceByShortId
Fetches a detailed space by its short ID.The space short ID.
Promise<SpaceDetailed>
fetchUserSpaces
Fetches the spaces the logged-in user belongs to.The page number to fetch.
The number of spaces to return per page.
Sort order:
"alphabetical", "newest", or "members".Comma-separated related resources to include in the response.
Filter by role. A single role or a comma-separated list, e.g.
"admin,moderator".Pass
"true" or "false".Promise<UserSpacesResponse>
fetchMutualSpaces
Fetches the spaces the logged-in user shares with another user — the spaces both are active members of.The other user’s ID. Mutual spaces are computed between this user and the logged-in user.
The page number to fetch.
The number of spaces to return per page. Max
100.Comma-separated related resources to include (e.g.
"files").Promise<PaginatedResponse<Space>>
updateSpace
Updates a space’s settings.The Sublay space ID.
New display name for the space.
New URL-friendly identifier.
New description of the space.
Who can read content:
"anyone" or "members".Who can post content:
"anyone", "members", or "admins".Arbitrary metadata attached to the space.
Promise<Space>
deleteSpace
Deletes a space.The Sublay space ID.
Promise<DeleteSpaceResponse>
checkSlugAvailability
Checks whether a space slug is available.The slug to check.
Promise<{ available: boolean }>
fetchChildSpaces
Fetches a paginated list of child spaces under a parent.The parent space ID.
The page number to fetch.
The number of spaces to return per page.
Sort order:
"alphabetical", "newest", or "members".Comma-separated related resources to include in the response.
Promise<PaginatedResponse<Space>>
fetchSpaceBreadcrumb
Fetches the ancestor breadcrumb chain for a space.The Sublay space ID.
Promise<SpaceBreadcrumb>
getSpaceConversation
Gets the chat conversation object associated with a space.The Sublay space ID.
Promise<Conversation>
Space chat messages are sent and read via the chat module.

