API Specificationxmb.api.v1.NotificationPushService
Register push device
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.
Length
1 <= length <= 64kind?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.
Length
1 <= length <= 16token?string
The Expo token, or the Web Push subscription JSON. Stored encrypted; never returned.
Length
1 <= length <= 4096deviceLabel?string
"Chrome on macOS", a phone model. Display only.
Length
length <= 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 '{}'{}