Skip to Content
Xeonr Developer Docs

Accept invitation

POST
/xmb.api.v1.MembershipService/AcceptInvitation

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
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

ref*

Which invitation.

[key: string]?never

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]"
}