Import preferences
Writes a person's preference cells for the calling product, as the product's service account, with no user present. For migrating rows a product already holds — a nightly job or a request handler that reaches for this instead of acting for the person is misusing it. The scope is the calling service account's own application (app_slug is not a field): a product cannot import another product's cells or the person's blanket rows. Idempotent: each cell upserts on (subject, app, category, channel), so a re-run is safe. The in-app channel is refused, as it is everywhere.
Required scopes: notify:preferences:import (service-account only)
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
The person, as a Xeonr Auth user URN (urn:xeonr:auth:uid:user:). string.prefix = "urn:xeonr:auth:uid:user:"
1 <= length <= 191Up to 200 cells. A category from the product's catalogue, or empty for the product-wide row.
1 <= items <= 200Response Body
application/json
application/json
curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.DeviceService/ImportPreferences" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"written": "2"
}Import endpoints POST
Registers a person's devices for the calling product, as the product's service account, with no user present. For migrating registrations a product already holds; a client registering a device it has in hand uses RegisterDevice with a delegated token instead. The bundle is the calling service account's own application (`delivery_app` is not a field), which must already hold the matching push credential. Idempotent on `(subject, install_id)`: a re-run replaces the token, as re-registering does. **Required scopes:** `notify:endpoints:import` (service-account only)
Link Discord POST
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`