Skip to Content
Xeonr Developer Docs
API SpecificationDevices and preferences

Link Discord

POST
/xeonr.notify.v1.DeviceService/LinkDiscord

Reads the caller's own Discord connection from their Xeonr account and stores the id, so the bot can DM them. There is no second OAuth dance: the link already exists at the IDP, and this call is the consent to use it. Fails when the account has no Discord connection — connect it in the auth portal first — and needs a session that carries an access token, since notify asks auth as the caller.

Required scopes: notify:devices:edit

Authorization

BearerAuth
AuthorizationBearer <token>

An access token from Xeonr Auth, presented as Authorization: Bearer <token>. Its audience must include https://notify.xeonr.io, and it must carry the scope the method lists.

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.DeviceService/LinkDiscord" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "discord": "map[discordUserId:394832115670351872 dmBlocked:false linkedAt:2026-09-14T08:00:00Z username:luke]"
}