Skip to Content
Xeonr Developer Docs
API Specification

xmb.api.v1.MembershipService

MembershipService manages who is on a server, and answers invitations. --------------------------------------------------------------------- Administrative. Server-scoped; the caller must administer the server. ---------------------------------------------------------------------

postAccept invitation

Joins the server the invitation names, at the role it carries. Accepting by token does not require the caller's email to match the invited address; accepting by identifier does, because that is how it was found. **Required scopes:** `xmb:user:write`

postDecline invitation

Declines an invitation. It stops appearing on the caller's server picker and its link stops working. **Required scopes:** `xmb:user:write`

postGet invitation

Describes the invitation a token refers to, so it can be confirmed before it is accepted. Requires a session; the token alone reveals nothing. **Required scopes:** `xmb:user:read`

postInvite member

Issues an invitation to an email address and sends it. Redeemable by signing in with a matching address, by the link's token, or from the server picker. **Required scopes:** `xmb:admin`

postList invitations

Returns the invitations issued for a server that have not been answered, revoked or expired. **Required scopes:** `xmb:admin`

postList members

Returns the members of a server. Requires the caller to be an administrator of it. **Required scopes:** `xmb:admin`

postList my invitations

Returns the unanswered invitations addressed to the authenticated caller's email address. **Required scopes:** `xmb:user:read`

postRemove member

Removes someone from a server. Fails with FAILED_PRECONDITION if it would leave the server without an administrator. **Required scopes:** `xmb:admin`

postResend invitation

Sends an invitation again with a new token and expiry. The previously issued link stops working. **Required scopes:** `xmb:admin`

postRevoke invitation

Withdraws an invitation. Its link and its entry on the invitee's server picker both stop working. **Required scopes:** `xmb:admin`

postUpdate member role

Changes what a member may do on a server. Fails with FAILED_PRECONDITION if it would leave the server without an administrator. **Required scopes:** `xmb:admin`