PUT
/
users
/
{user_id}
/
tokens
/
{token}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The user's ID. This can be any uniquely identifiable string.

token
string
required

The full token string.

Body

application/json
provider_key
enum<string>
required
Available options:
firebase-fcm,
apn,
expo,
onesignal
token
string | null

Full body of the token. Must match token in URL.

expiry_date

ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.

properties
any | null

Properties sent to the provider along with the token

device
object

Information about the device the token is associated with.

tracking
object

Information about the device the token is associated with.