Users & Tokens

post/v2/users/me/devices/

Request

  • Base URL: https://api.density.io
  • URL: https://api.density.io/v2/users/me/devices/
  • Auth: API key in header Authorization

Request body

idinteger
namestring nullable
registration_idstring required
device_idinteger nullable

ANDROID_ID / TelephonyManager.getDeviceId() (e.g: 0x01)

activeboolean

Inactive devices will not be sent notifications

date_createdstring date-time nullable
cloud_message_type'FCM' | 'GCM'

You should choose FCM, GCM is deprecated

application_idstring nullable

Opaque application identity, should be filled in for multiple key/certificate access

Response

Created

idinteger
namestring nullable
registration_idstring required
device_idinteger nullable

ANDROID_ID / TelephonyManager.getDeviceId() (e.g: 0x01)

activeboolean

Inactive devices will not be sent notifications

date_createdstring date-time nullable
cloud_message_type'FCM' | 'GCM'

You should choose FCM, GCM is deprecated

application_idstring nullable

Opaque application identity, should be filled in for multiple key/certificate access

Changes

No recorded changes to this operation across all 3 revisions of this API.