Accept 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
Authorization
BearerAuth An access token issued by the xeonr identity provider.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
Which invitation.
Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.MembershipService/AcceptInvitation" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{ "ref": "map[invitationId:b8a7c6d5-e4f3-4a2b-9c8d-7e6f5a4b3c2d]" }'{
"server": "map[createdAt:2025-03-08T10:15:00Z id:12 memberCount:5 name:Thompson Home slug:thompson-home status:SERVER_STATUS_ACTIVE viewerRole:SERVER_ROLE_MEMBER]"
}xmb.api.v1.MembershipService
MembershipService manages who is on a server, and answers invitations. --------------------------------------------------------------------- Administrative. Server-scoped; the caller must administer the server. ---------------------------------------------------------------------
Decline invitation POST
Declines an invitation. It stops appearing on the caller's server picker and its link stops working. **Required scopes:** `xmb:user:write`