Get notification preferences
GET
/notifications/preferences
const url = 'http://localhost:8000/api/v1/notifications/preferences';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8000/api/v1/notifications/preferences \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful operation
Media type application/json
object
channels
object
email
boolean
push
boolean
inapp
boolean
types
object
reminders
boolean
insights
boolean
inactivity
boolean
Example generated
{ "channels": { "email": true, "push": true, "inapp": true }, "types": { "reminders": true, "insights": true, "inactivity": true }}