devices
Register a device for push
Registers the FCM token this device holds, so Lala can reach the student when the application is closed. Call it after every sign-in, and again whenever the FCM SDK reports a refreshed token.
The call is idempotent. Registering a token that is already known updates the row instead of adding a second one, and a token that belonged to another account moves to the caller — so a reinstall or an account switch cannot leave the previous student reachable on this device.
POST
Register a device for push
Authorizations
Supabase access token: Authorization: Bearer <token>
Body
application/json
Response
The registered device