Skip to main content
GET
/
:projectId
/
api
/
v7
/
spaces
/
user-spaces
Fetch User Spaces
curl --request GET \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces
{
  "data": [
    {
      "membershipId": "<string>",
      "role": "<string>",
      "status": "<string>",
      "joinedAt": "<string>"
    }
  ],
  "pagination": {}
}
Returns a paginated list of spaces where the authenticated user has an active membership, along with their membership details for each space.

Query Parameters

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

Response

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