Skip to main content
POST
Register a push device

Authorizations

Authorization
string
header
required

A member credential in the Authorization: Bearer header: a member session JWT, a portal JWT whose login is linked to a membership in that company, or a member token. The credential alone identifies the member and company.

Body

application/json

A push token to register, with what the app knows about the device.

push_token
string
required

The device's Expo push token. Any non-blank string, as the legacy registration accepts.

Pattern: \S
device_type
string | null
Maximum string length: 32
device_uid
string | null
Maximum string length: 255
bundle_id
string | null
Maximum string length: 255
project_id
string | null
Maximum string length: 255

Response

The member had already registered this token; it is refreshed and active.

status
integer
required
data
object
required

A device registered for push notifications. The push token is never returned, whole or in part: anyone holding it can send pushes to the device. Recognise the device by id, which registration returns, and by its own device_uid. A member sees only their own devices.

meta
object
required

Envelope metadata present on every response.