Fetch Spaces
Space Endpoints
Fetch Spaces
Get a paginated list of spaces with filtering and sorting
GET
Fetch Spaces
Fetches a paginated list of spaces. Supports filtering by search query, membership, and parent space. Authentication is optional — if provided, member-only spaces the user belongs to are included.
See also: useFetchManySpaces
Query Parameters
Page number. Defaults to
1.Results per page.
Sort order:
"alphabetical", "newest", or "members". Defaults to "members".Filter by slug substring.
Filter by name substring.
Filter by description substring.
Search across name, slug, and description simultaneously.
When
true, returns only spaces where the authenticated user is an active member.Filter to child spaces of a specific parent. Pass
"null" for root-level spaces only.Optional comma-separated includes. Pass
"files" to include avatar file objects.
