Skip to Content
Xeonr Developer Docs
API SpecificationDevices and preferences

Import endpoints

POST
/xeonr.notify.v1.DeviceService/ImportEndpoints

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)

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

subjectUrn?string

The person, as a Xeonr Auth user URN (urn:xeonr:auth:uid:user:). string.prefix = "urn:xeonr:auth:uid:user:"

Length1 <= length <= 191
endpoints?array<>

Up to 50 devices.

Items1 <= items <= 50
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.DeviceService/ImportEndpoints" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "written": "1"
}