Skip to main content
GET
Fetch User Spaces
Returns a paginated list of spaces where the authenticated user has an active membership, along with their membership details for each space.

Query Parameters

number
Page number. Defaults to 1.
number
Results per page. Max 100.
string
Filter by role. Single value ("admin", "moderator", "member") or comma-separated list (e.g. "admin,moderator").
string
Optional comma-separated includes. Pass "files" to include avatar and banner file objects on each space.
string
Pass "true" to return all memberships without pagination. When used, the response omits the pagination field.

Response

UserSpaceItem[]
Each item contains a space and a membership object.
object
Standard pagination metadata.
See also: useFetchUserSpaces