Add device token

Add a device token for push notifications. Tokens are automatically deduplicated.

Authentication

AuthorizationBearer
JWT token obtained from authentication endpoints

Request

This endpoint expects an object.
deviceTokenstringRequired
FCM token for Android, APNs token for iOS, or web push token
platformenumOptional

Platform type (optional, for metadata)

Allowed values:

Response

Device token added successfully
successboolean or null
messagestring or null
deviceTokenslist of strings or null
Updated list of all device tokens

Errors