Skip to main content
List Space Members
Returns a paginated list of space members with embedded user details.

Path Parameters

string
required
UUID of the space.

Query Parameters

string
Service key only: the user to list as. The page is exactly what that user’s own access token would get (their memberships, so the list of a members-only space, or of a space under one, is open to them only when they can read the space). Leave it out for the anonymous view: such a list returns 403. A user token always acts as its own user and must not send it, and neither may a request with no credentials (400 space/acting-user-not-allowed).
number
Page number (1-indexed): a whole number, 1 or more. Defaults to 1. Any other value returns 400 space/invalid-query with param: "page".
number
Members per page: a whole number from 1 to 100. Defaults to 20. A larger value returns 400 space/invalid-query with param: "limit" (it is never lowered to 100), as does 0, a negative number or a value that isn’t a whole number. See Pagination.
string
Filter by membership status: "pending", "active", "banned", or "rejected" (declined join requests). Honoured only when the caller (or the user named by actingUserId) is an admin or moderator of the space. Admins and moderators who leave status out get members of every status. Anyone else always gets active members only, whatever status they send.
string
Filter by role: "admin", "moderator", or "member".

Space-scoped reputation

This endpoint has a space in context, so it accepts the opt-in reputation params. They add a spaceReputation field to each returned member’s user, alongside the always-present reputation total. Requires the reputation bundle. See the Reputation data model for the full contract.

Response

SpaceMemberWithUser[]
Array of SpaceMemberWithUser objects.
object
Standard pagination metadata.

Error Responses

Returned when spaceId isn’t a valid UUID. Checked before sign-in, permissions and the endpoint’s other checks.
The caller can’t read the space: it, or a space above it, has readingPermission: "members", and the caller isn’t an active member of that members-only space or of a space between it and this one, this one included (no membership, or one that is pending, banned or rejected, doesn’t count). See How permissions are calculated.
A user token, or a request with no credentials, sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
The space doesn’t exist, or the viewer can’t see it (a private space they aren’t an active member of, or a space under one). Both answer the same way, before any permission check. See Space visibility.
See also: useFetchSpaceMembers