Register a device for push
Registers a browser or mobile device to receive push notifications for the calling user. Re-registering the same device updates the existing record rather than creating a second one. This is account-independent — a device registered once receives push for every account the user belongs to.
Authorizations
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
Body
The device to register.
Response
Success
The numeric ID of the subscription.
The user the device belongs to.
Web push, or Firebase Cloud Messaging for the mobile apps.
browser_push, fcm The provider's own payload — endpoint and keys for web push, the device token for FCM.
Derived from the subscription attributes and used to de-duplicate devices.
ISO-8601 timestamp of registration.
ISO-8601 timestamp of the last change.