Skip to main content
Check My Membership
Returns the acting user’s membership status and resolved permissions in a space: the token’s user, or the user a service key names in actingUserId. me in the path always means that user. A user with a membership gets it whatever its status (pending, banned or rejected included), so a banned user learns they’re banned, even in a space they can no longer see. A user with no membership in a space they can’t see (a private space, or one under it) gets 404 space/not-found, like a space that doesn’t exist; in a space they can see, the response has no status.
Your own membership is /spaces/:spaceId/members/me: GET to check it, DELETE to leave. The /spaces/:spaceId/members/:userId/… routes (role, approve, decline, ban, unban) act on other members, addressed by user id, and refuse your own id with 400 space/own-member-id. The space’s owner (its userId: the creator of a top-level space, the root space’s creator for a sub-space) always stays an admin: they can’t step down, leave the space, or be banned.

Path Parameters

string
required
UUID of the space.

Query Parameters

string
Service key only, and required with one: the user this request acts as, whose membership is returned. A user token always acts as its own user and must not send it (400 space/acting-user-not-allowed).

Response

A flat object. isMember and permissions are always present; a field that describes a membership the user doesn’t have is left out, not sent as null.
boolean
Whether the user has an active membership.
string
"admin", "moderator" or "member". Present only when isMember is true.
string
"pending", "active", "banned" or "rejected". Present only when the user has a membership record in the space.
Date
When the membership was created. Present only when isMember is true.
object
The same calculation as memberPermissions on a fetched space; see How permissions are calculated.
A user with a pending join request

Error Responses

Returned when spaceId isn’t a valid UUID. Checked before sign-in, permissions and the endpoint’s other checks.
The request had no credentials: no Authorization header and no service key. The body is text/plain (Unauthorized), not JSON. An expired or invalid token returns 403 instead — see Authentication.
A service key sent no actingUserId.
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 request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials:
The space doesn’t exist, or the user has no membership in it and can’t see it.
See also: useCheckMyMembership