Skip to navigation

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
successbooleanOptional
messagestringOptional
deviceTokenslist of stringsOptional
Updated list of all device tokens

Errors

401
Unauthorized Error