EaserixDocs
DevelopersAPI referenceNotificationsDevices

Register this install for push

Idempotent on the token — apps re-register on every launch. A token that reappears under a different user moves to that user rather than duplicating, so a shared device never receives the previous signed-in user's notifications.

View as Markdown
POST
/v1/devices
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/devices" \  -H "Content-Type: application/json" \  -d '{    "token": "string",    "platform": "ios"  }'
{  "device": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "platform": "ios",    "appVersion": "string",    "lastSeenAt": "2019-08-24T14:15:22Z",    "created": "2019-08-24T14:15:22Z"  }}