JavaScript
Device Tokens
Add single token to user
Adds a single token to a user and overwrites a matching existing token.
PUT
JavaScript
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The user's ID. This can be any uniquely identifiable string.
The full token string.
Body
application/json
Request body for adding a single token. The token value itself is provided via the path parameter, so it is omitted from the body.
Available options:
firebase-fcm, apn, expo, onesignal ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.
Properties about the token.
Information about the device the token came from.
Tracking information about the device the token came from.