Skip to navigation

Upsert FCM token

Upserts a Firebase Cloud Messaging token for the caller. Dedupes on token; if token exists, updates last_used_timestamp. | (FirebaseCloudMessagingTokenClientCreate1) -> (UserPrivateData1)

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
firebase_cloud_messaging_tokenstringRequired
platformenum or nullOptional
Allowed values:

Response

Successful Response
_idstring
created_at_timestampstringformat: "date-time"
schema_versioninteger
user_idstring

Must be a string starting with user_

firebase_cloud_messaging_token_datalist of objectsOptional
namestring or nullOptional1-255 characters
phone_numberstring or nullOptionalformat: "phone"
primary_email_addressstring or nullOptionalformat: "email"
time_zonestring or nullOptional
workos_synced_at_timestampstring or nullOptionalformat: "date-time"

Errors

422
Unprocessable Entity Error