Returns the paginated set of spaces the current user could join or already belongs to, each with its active member count.
Public and private spaces are always listed; secret spaces appear only where the user holds an active membership. Filter with search and type=joined; sort with sort_by set to alphabetical (the default), latest or oldest. Spaces with hide_members_count report zero unless the caller may view their members.
Endpoint
- Method:
GET - Path:
/spaces/discover - Edition: Core
- Controller:
SpaceController@discover - Route source:
fluent-community/app/Http/Routes/api.php:30 - Controller source:
fluent-community/app/Http/Controllers/SpaceController.php
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
GET Discover Spaces
Returns the paginated set of spaces the current user could join or already belongs to, each with its active member count.
Controller: SpaceController@discover
Route source: fluent-community/app/Http/Routes/api.php:30
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Query Parameters
Type read via $request->getSafe() in discover().
Search read via $request->getSafe() in discover().
Sort By read via $request->getSafe() in discover().
"alphabetical"Responses
Successful response