Register a device
register_deviceStore a device's push token under your user id. Android and iOS tokens come from the Firebase or Apple SDK; for web, token is the PushSubscription as JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional label, like Rushi's iPhone. | |
| token | Yes | The push token. | |
| user_id | Yes | Your own id for the user. | |
| platform | Yes |