Set my Discord link
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 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
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
A Discord user id (snowflake): digits only.
^[0-9]+$1 <= length <= 32Response 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]"
}Send test POST
Sends a test notification to one of the caller's own devices — or over a named channel, to test email or Discord instead. It goes out for real but outside the ledger, so it proves the whole path from the console without leaving a delivery row. The response carries whatever the provider said when it failed. **Required scopes:** `notify:devices:edit`
Set my preference POST
Sets one switch, at one scope: empty `app_slug` and empty `category` is the everything row, an app with no category is everything that product sends, and both together is one kind of event from one product. The most specific row that matches wins, per channel. Writing the state that already resolves is a no-op rather than an error, so a grid can submit whatever the person clicked. A channel that cannot serve this person at all is refused, and the in-app inbox cannot be switched off — it is the delivery record. **Required scopes:** `notify:devices:edit` — or `notify:preferences:edit` on a token a product obtained by RFC 8693 exchange to act for this person, in which case the call is confined to that product's own slice