Skip to main content
Join Space
Joins a space. If the space has requireJoinApproval: true, the membership is created with status: "pending" until approved. Otherwise it is immediately active. Joining again is not an error. A user who is already an active member, or already has a request awaiting approval, gets 200 with that membership, unchanged. A user whose earlier request was declined joins again as if for the first time: a new request, or an active membership when the space needs no approval. A private space can’t be joined and takes no join requests: joining a space the user can’t see answers 404 space/not-found, like a space that doesn’t exist. A private space’s moderators and admins add its members instead. See Space visibility.

Path Parameters

string
required
UUID of the space to join.

Body Parameters

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

Response

The user’s membership record, as a SpaceMember object. The body is the same whether the status is 201 or 200: To read what the user may do in the space now, fetch the space again (Fetch Space): its memberPermissions describe them. A request awaiting approval has status: "pending", and the space’s memberPermissions then report isMember: false.
string
Membership id.
string
The space.
string
The member.
'admin' | 'moderator' | 'member'
member for a new membership; on a repeat join, the role the user already holds.
'pending' | 'active' | 'banned' | 'rejected'
active, or pending for a request awaiting approval.
string
When the membership became active; on a request still awaiting approval, when the request was made (ISO 8601).
string
When the membership record was created (ISO 8601).

Error Responses

Returned when spaceId isn’t a valid UUID. Checked before sign-in, permissions and the endpoint’s other checks.
A service key sent no actingUserId.
A user token 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.
actingUserId was sent in the query string. On this endpoint every field, actingUserId included, goes in the request body.
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 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.
Also returned when the user is banned in a parent of this space; bannedSpaceIds lists those spaces:
The user’s membership was changed by another request while this one ran, and is now neither active, pending nor banned. Try again.
A membership written meanwhile that is active or pending (a parallel join, or a moderator adding them) answers 200 with it; a ban that lands meanwhile answers 403 space/banned.
See also: useJoinSpace