Returns only the space ids a member actively belongs to — the cheap lookup used to decide what to show on their profile.
Secret spaces are excluded unless the caller is the profile owner or a community moderator.
Endpoint
Method:
GETPath:
/profile/{username}/membershipsEdition: Core
Controller:
ProfileController@getAllMembershipsRoute source:
fluent-community/app/Http/Routes/api.php:92Controller source:
fluent-community/app/Http/Controllers/ProfileController.phpGated by the
user_space_visibilityprivacy setting.
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 List Profile Memberships
Returns only the space ids a member actively belongs to — the cheap lookup used to decide what to show on their profile.
Controller: ProfileController@getAllMemberships
Route source: fluent-community/app/Http/Routes/api.php:92
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Username extracted from the URL path.
Responses
Successful response