Skip to Content
Xeonr Developer Docs
API SpecificationDevices and preferences

Register device

POST
/xeonr.notify.v1.DeviceService/RegisterDevice

Registers a push endpoint for the caller. One row per (person, install id): re-registering replaces it, so token rotation is an upsert and a revoked device comes back to life. The token crosses this API exactly once and is sealed at rest; nothing ever returns it. A service account is refused — it has no devices.

Required scopes: notify:devices:edit — or notify:endpoints: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

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

installId?string

A client-minted id stable across the install's life.

Length1 <= length <= 64
kind?not unknown

EndpointKind is which push machinery minted a device's token.

Value in"ENDPOINT_KIND_UNSPECIFIED" | "ENDPOINT_KIND_WEB_PUSH" | "ENDPOINT_KIND_APNS" | "ENDPOINT_KIND_FCM"
platform?string

web | ios | android. Display and diagnostics, not routing.

Lengthlength <= 16
token?string

The Web Push subscription JSON, or a raw APNs/FCM token.

Length1 <= length <= 4096
deviceLabel?string

"Chrome on macOS", a phone model. Display only.

Lengthlength <= 128
apnsEnvironment?string

For an apns device: production | development, whichever the build was signed for. Defaults to the deployment's own setting. A token sent to the wrong environment is refused in a way that looks like a dead device, so this is recorded rather than assumed.

Lengthlength <= 16
deliveryApp?string

Whose app bundle this device belongs to — an app slug with its own push credentials. Empty is the Xeonr Notify app.

Lengthlength <= 64
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.DeviceService/RegisterDevice" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "endpoint": "map[apnsEnvironment:production createdAt:2026-09-14T08:00:00Z deliveryApp:xmb deviceLabel:Luke's iPhone id:ep_2a4c6e8f0b1d3f5a7c9e1b3d installId:3f9c2a71-6b0e-4d8a-9f21-5c7e8b4d2a10 kind:ENDPOINT_KIND_APNS lastSeenAt:2026-10-22T09:30:00Z platform:ios subject:urn:xeonr:auth:uid:user:3]"
}