Users

Register mobile push device

Registers a mobile push device for APNs, Firebase Cloud Messaging, or UnifiedPush. A Web Push registration sends the endpoint URL with encryption_key and auth_secret. A raw registration sends the platform push token with no keys.

post/users/@me/mobile-devices

Request body

platform'android_fcm' | 'ios_apns' | 'ios_apns_voip' | 'android_unified_push' required

The mobile push notification platform

tokenstring required

The Web Push endpoint URL when encryption keys are supplied, otherwise the raw platform push token

user_agentstring

The user agent string identifying the device

app_idstring

Client app channel or bundle mapping identifier, such as stable, beta, or canary

provider_environment'production' | 'development'

Push provider environment. For APNs, production uses api.push.apple.com and development uses api.sandbox.push.apple.com.

encryption_keystring

The P-256 ECDH public key for Web Push encryption (base64url)

auth_secretstring

The authentication secret for Web Push encryption (base64url)

Response

Success

device_idstring required

Changes