Skip to content

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: GET

  • Path: /profile/{username}/memberships

  • Edition: Core

  • Controller: ProfileController@getAllMemberships

  • Route source: fluent-community/app/Http/Routes/api.php:92

  • Controller source: fluent-community/app/Http/Controllers/ProfileController.php

  • Gated by the user_space_visibility privacy 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

GET
/profile/{username}/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

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

username*

Username extracted from the URL path.

Type
string
Required

Responses

Successful response

application/json
JSON
{
  
"memberships": [
  
  
0
  
]
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation