Overview
The Notifications API allows users to configure email reminders, deadline warnings, weekly digests, and custom reminder schedules for their study plans.Get Notification Settings
GET /api/notifications/settings
Get user’s notification settings. Requires authentication.
Response
Notification settings object
Default Settings
If user hasn’t customized settings, returns:Update Notification Settings
PUT /api/notifications/settings
Update notification settings. Requires authentication.
Request Body
All fields are optional. Only include fields you want to update.Enable/disable email reminders
Default reminder time in HH:MM format (24-hour time)Examples:
"09:00", "14:30", "18:45"Reminder frequency:
"daily"- Every day"weekdays"- Monday through Friday only"custom"- Custom days specified incustomDays
Array of weekday numbers for custom frequency:
0= Sunday1= Monday2= Tuesday3= Wednesday4= Thursday5= Friday6= Saturday
[1, 3, 5] = Monday, Wednesday, FridayEnable/disable deadline warning emails (sent when approaching instance end dates)
Enable/disable weekly progress digest email
Array of custom reminder objects
Response
“Notification settings updated successfully”
Updated notification settings object
Notification Types
Email Reminders
Daily/scheduled reminders about active study plan instances:- Sent at configured
reminderTime - Frequency controlled by
reminderFrequencyandcustomDays - Can be disabled with
emailReminders: false - Includes upcoming resources and progress summary
Deadline Warnings
Warnings when instance end date is approaching:- Sent at predefined intervals (e.g., 7 days, 3 days, 1 day before)
- Controlled by
deadlineWarningssetting - Includes progress summary and remaining work
Weekly Digest
Weekly summary of study progress:- Sent once per week
- Controlled by
weeklyDigestsetting - Includes completion stats, time spent, and upcoming deadlines
Custom Reminders
User-defined reminder schedule:- Multiple reminders at different times
- Custom messages for each reminder
- Specific days for each reminder
- Stored in
customRemindersarray
Share Notifications
In-app notifications when study plans are shared:- Not configurable (always sent)
- Appears in user’s notifications list
- Includes link to shared study plan
Reminder Frequency Examples
Daily Reminders
Weekday Reminders
Custom Schedule
Multiple Custom Reminders
Per-Instance Settings
While global settings are managed here, individual instances can override:reminderTime- Custom time for specific instancereminderEnabled- Disable reminders for specific instancecustomReminders- Instance-specific reminder schedule