Login | Sign Up
  • FA
  • EN

API Docs

POST /api/v1/users/fcm/unregister-token

Unregister an FCM token for the authenticated user to stop receiving push notifications from that device.


Authentication

This endpoint requires authentication via Sanctum token.


Request Body Parameters

NameTypeRequiredDescription
tokenstringYesFCM registration token

Response

200 OK

{
  "message": "FCM token unregistered successfully"
}

Error Responses

StatusDescriptionReference
422Validation errorValidation error
401UnauthorizedAuthentication error

Notes

  • This will remove the FCM token from the user's registered devices
  • The user will no longer receive push notifications on the device associated with this token
footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub