Account Notifications
Each user controls which events trigger notifications and which channels deliver them. Settings live under /app/notification-preferences.
Endpoints
GET /api/v1/notification-preferences fetch current prefs
PUT /api/v1/notification-preferences updatePreference shape
typescript
{
uid: ObjectId,
channel: "in_app" | "email" | "push",
type: string, // event type
enabled: boolean,
}A preference is a tuple of (user, channel, type) — switching it off mutes that one combination.
Event types
payment.requested,payment.rejectedsubscription.activated,trial.endingSoon,trial.expiredquota.warningteam.invitationmarketplace.order_receivednews
The full list is in Notifications → Preferences.