Register Device


Register a device with the server. This request does two things:
- Associates a device with the current session. Consequent device requests operates implicitly on this device.
- Sets the device information, i.e. push service data, phone line, and more.

After registration the device can receive notifications from the server.
The device can receive/setup phone calls through Xelion.

Resource

POST /me/device/register

Parameters

None

Response

None

Context

Authorization

User

Errors

HTTP code Xelion code Description

400

10200

parameter is missing: no payload or UUID not specified.

10202

parameter malformed: failed to decode the Push Service Attributes object

401

10000

The user is not authenticated.

Example

Request
POST https://xelion.nl/api/v1/master/me/device/register
Payload
{
    "uuid": "AwDmcwgAiioF",
    "phoneNumber": "+31614241697",
    "pushServiceRegistrationId": "https://db5.notify.windows.com/?token=AwYAAT0rjmCGqsMMTRHfP%2fu%2fe9NoU5oYp9w93j1N%2fMHmDYhXsH8%3d",
    "pushServiceId": "WindowsPushNotificationServices"
 }
Response

None