Skip to Content
Xeonr Developer Docs

Begin Discord guild connect

POST
/xmb.api.v1.NotificationDiscordService/BeginDiscordGuildConnect

Returns the Discord authorisation URL that adds the platform bot to a guild for this server.

Required scopes: xmb:admin

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

serverSlug?string
Length1 <= length <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.NotificationDiscordService/BeginDiscordGuildConnect" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "authorizeUrl": "https://discord.com/oauth2/authorize?client_id=1298700000000000000&permissions=19456&redirect_uri=https%3A%2F%2Fxmb.gg%2Fintegrations%2Fdiscord%2Fcallback&response_type=code&scope=bot&state=c3RhdGUtcGxhY2Vob2xkZXI"
}