Skip to content

Spaces API

Space discovery, lifecycle management, joins/leaves, lock screen configuration, and group organization.

Authentication

Most space routes are protected by SpacePolicy, which combines portal access with space-specific permissions.

Endpoints

MethodPathEditionOperationWhat it does
GET/spacesCoreList SpacesReturns every space the current user has a membership row for, in alphabetical order, without pagination.
POST/spacesCoreCreate SpaceCreates a space, makes the caller its first admin, and attaches the submitted cover photo, logo and topics.
GET/spaces/{spaceSlug}/by-slugCoreGet Space By SlugReturns one space with its settings, topics, the current user membership and the permissions they hold inside it.
PUT/spaces/{spaceSlug}/by-slugCoreUpdate Space By SlugUpdates a space record and its settings, and returns a redirect URL when the change altered its slug.
PUT/spaces/{spaceId}/by-idCoreUpdate Space By IDUpdates a space addressed by numeric id; the id is resolved to a slug and then handled exactly as the by-slug endpoint.
POST/spaces/{spaceSlug}/joinCoreJoin SpaceJoins the current user to a space, or lodges a join request when the space requires approval, and returns the resulting membership.
POST/spaces/{spaceSlug}/leaveCoreLeave SpaceRemoves the current user membership of a space and refreshes their cached space access.
GET/spaces/{spaceSlug}/meta-settingsCoreGet Space Meta SettingsReturns the extra space settings panels contributed by integrations, or `null` when nothing has registered any.
DELETE/spaces/{spaceSlug}CoreDelete Space By SlugDeletes a space along with everything posted in it and every membership record for it.
DELETE/spaces/{spaceId}/by-idCoreDelete Space By IDDeletes a space addressed by numeric id; the id is resolved to a slug and then handled exactly as the by-slug endpoint.
GET/spaces/{spaceSlug}/lockscreensCoreGet Space LockscreensReturns the lock screen configuration a space shows to visitors who are not members — its copy, imagery and call to action.
POST/spaces/{spaceSlug}/linksCoreUpdate Space LinksReplaces the sidebar link list shown on a space with the submitted set.
GET/spaces/users/searchCoreSearch Space UsersSearches for WordPress users who are not yet members of a space, for the add-member picker.
GET/spaces/discoverCoreDiscover SpacesReturns the paginated set of spaces the current user could join or already belongs to, each with its active member count.
GET/spaces/all-spacesCoreList All SpacesReturns the paginated list of spaces with each one formatted for display, including the current user permissions and membership within it.
GET/spaces/space_groupsCoreList Space GroupsReturns the space groups with their spaces expanded, plus any space or course that has not been assigned to a group.
POST/spaces/space_groupsCoreCreate Space GroupCreates a space group to hold spaces in the sidebar.
PUT/spaces/space_groups/{id}CoreUpdate Space GroupUpdates the title, description and expansion behaviour of a space group.
DELETE/spaces/space_groups/{id}CoreDelete Space GroupDeletes an empty space group.
PATCH/spaces/space_groups/re-indexCoreReindex Space GroupsApplies a new sidebar order to the space groups.
PATCH/spaces/space_groups/re-index-spacesCoreReindex SpacesApplies a new sidebar order to spaces within their group.
PATCH/spaces/space_groups/move-spaceCoreMove SpaceMoves a space into a different space group.
PUT/spaces/{spaceSlug}/lockscreensPROUpdate Space Lockscreen SettingsStores the lock screen configuration a space shows to non-members.

FluentCommunity developer documentation