POST /notifications/preferences/{userId} body:{notificationType: string; isEnabled:boolean} - with this endpoint, the users can turn on/off specific notifications receival
GET /analytics/notifications for admins to track user engagements with notifications
GET /analytics/notifications/{userId} for admins to track a user engagements with notifications (clicks,dismisses)
GET /notifications/preferences/{userId} - gets all notification preferences for a specific user if provided or for all users
GET /notifications/{userId} - gets all received notifications for a user or all users - used by admins
POST /send/notification body:{userId:string; message:string; type:SMS | mail | APNS | FCM} used to create the notification entry on our side and calls the third party provider for sending the notification
GET /notifications/{notificationId} - gets the info for a specific notification (status, sentAt, userId, type)
POST /send/notifications body:{userIds:JSON; message:string; type:SMS | mail | APNS | FCM} used to create the notification entries on our side and calls the third party provider for sending the same notification to multiple users at once - eg for updates or global messages
updating user notification preferences flow:
sending notifications flow:
scheduled notifications flow: