Skip to Content
Xeonr Developer Docs
API SpecificationDevices and preferences

Get push config

POST
/xeonr.notify.v1.DeviceService/GetPushConfig

Whether web push can deliver in this deployment, the VAPID public key a browser subscribes against, and whether APNs/FCM credentials are held at all — so a native app knows before it asks whether registering a device token can work.

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

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.DeviceService/GetPushConfig" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "webPushAvailable": "true",
  "vapidPublicKey": "BEl62iUYgUivxIkv69yViEuiBIa-Ib9-SkvMeAtA3LFgDzkrxZJjSgSnfckjBJuBkr3qBUYIHBQFLXYp5Nksh8U",
  "nativePushAvailable": "true"
}