Retrieves the notification preferences for the current user.
notifications:preferences:read
curl --request GET \
--url https://server26-dot-royalti-project.uc.r.appspot.com/notifications/preferences \
--header 'Authorization: Bearer <token>'
{
"status": "success",
"message": "Notification preferences retrieved successfully",
"data": [
{
"channel": "email",
"enabled": true
},
{
"channel": "push",
"enabled": false
},
{
"channel": "in_app",
"enabled": true
}
]
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Notification preferences retrieved successfully
The response is of type object
.
curl --request GET \
--url https://server26-dot-royalti-project.uc.r.appspot.com/notifications/preferences \
--header 'Authorization: Bearer <token>'
{
"status": "success",
"message": "Notification preferences retrieved successfully",
"data": [
{
"channel": "email",
"enabled": true
},
{
"channel": "push",
"enabled": false
},
{
"channel": "in_app",
"enabled": true
}
]
}