Skip to Content
Xeonr Developer Docs
API SpecificationDevices and preferences

Set my Discord link

POST
/xeonr.notify.v1.DeviceService/SetMyDiscordLink

Stores the Discord account notify will DM for the caller. Verified before storing: the id must resolve, at Xeonr Auth, to the caller's own account — link Discord on the Xeonr account first (/account/link/discord), then call this. A product acting for a person uses this where the person would use LinkDiscord: it reads the person's connection from auth as them and hands notify the id, and notify checks it rather than trusting it. Re-linking clears a DM-blocked flag.

Required scopes: notify:discord:edit — delegatable

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

discordUserId?string

A Discord user id (snowflake): digits only.

Match^[0-9]+$
Length1 <= length <= 32
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.DeviceService/SetMyDiscordLink" \  -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]"
}