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 and rules see Space Moderation.
createSpace
Creates a new space.Who may read content, for your app to enforce:
"anyone" or "members". The v7 API reports it in memberPermissions.canRead but doesn’t hide the content inside the space; see Content inside a space and the v8 rules.Who may post entities, for your app to enforce:
"anyone", "members", or "admins". The v7 API reports it in memberPermissions.canPost but doesn’t refuse entities that don’t match it; see Content inside a space and the v8 rules.Listing/discoverability:
"public" (default), "unlisted", or "private". Independent of readingPermission. "unlisted" hides the space from discovery and search but keeps it reachable by direct link; "private" hides the space, and the spaces under it, from everyone except its active members — it answers 404 like a nonexistent space and can’t be joined. The content inside it stays readable in v7; see Content inside a space and the v8 rules.The space’s own NSFW flag. Defaults to
false. A space created under an NSFW parent is effectively NSFW regardless of this value. See Space NSFW flagging.Promise<Space>
fetchSpace
Fetches a single space, including detailed information, by its ID.Promise<SpaceDetailed>
fetchManySpaces
Fetches a paginated, filterable list of spaces.Filter by each space’s
nsfwEffective (own flag OR any ancestor). "include-all" (default) adds no predicate; "exclude" drops effective-NSFW spaces; "only" returns only them. "only" may return an NSFW child whose safe parent is omitted. See Space NSFW flagging.Promise<PaginatedResponse<Space>>
fetchSpaceBySlug
Fetches a detailed space by its slug.Promise<SpaceDetailed>
fetchSpaceByShortId
Fetches a detailed space by its short ID.Promise<SpaceDetailed>
fetchUserSpaces
Fetches the spaces the logged-in user belongs to.Membership status to list:
"active" (default), "pending", or "banned". Use "pending" to find join requests still awaiting approval.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.
Promise<PaginatedResponse<Space>>
updateSpace
Updates a space’s settings.Who may read content, for your app to enforce:
"anyone" or "members". The v7 API reports it in memberPermissions.canRead but doesn’t hide the content inside the space; see Content inside a space and the v8 rules.Who may post entities, for your app to enforce:
"anyone", "members", or "admins". The v7 API reports it in memberPermissions.canPost but doesn’t refuse entities that don’t match it; see Content inside a space and the v8 rules.Updated visibility:
"public", "unlisted", or "private". Controls listing/discoverability, independent of readingPermission.Updated NSFW own-flag. Toggling it recomputes this space’s effective NSFW and cascades it top-down to every descendant space (and, live, to their entities). See Space NSFW flagging.
Promise<Space>
deleteSpace
Deletes a space. The reputation users earned in the space and its sub-spaces is removed from their totals (see Reputation).Promise<DeleteSpaceResponse>
checkSlugAvailability
Checks whether a space slug is available.Promise<{ available: boolean }>
fetchChildSpaces
Fetches a paginated list of child spaces under a parent.Promise<PaginatedResponse<Space>>
fetchSpaceBreadcrumb
Fetches the ancestor breadcrumb chain for a space.Promise<SpaceBreadcrumb>
getSpaceConversation
Gets the chat conversation object associated with a space.Promise<Conversation>
Space chat messages are sent and read via the chat module.

