Skip to Content
Xeonr Developer Docs

Register push device

POST
/xmb.api.v1.NotificationPushService/RegisterPushDevice

Registers or refreshes the calling account's push token for this install.

Required scopes: xmb:user:write

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

installId?string

The same client-minted install id the app already uses for its playback device row. One row per (account, install): re-registering replaces, so token rotation is an upsert and never an accumulation.

Length1 <= length <= 64
kind?not unknown

Which push machinery minted the token.

Value in"PUSH_TOKEN_KIND_UNSPECIFIED" | "PUSH_TOKEN_KIND_EXPO" | "PUSH_TOKEN_KIND_WEBPUSH" | "PUSH_TOKEN_KIND_APNS" | "PUSH_TOKEN_KIND_FCM"
platform?string

ios | android | web. Display and diagnostics, not routing — the kind routes.

Length1 <= length <= 16
token?string

The Expo token, or the Web Push subscription JSON. Stored encrypted; never returned.

Length1 <= length <= 4096
deviceLabel?string

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

Lengthlength <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.NotificationPushService/RegisterPushDevice" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{}