Real-time Notification System
Keep users engaged with a built-in notification infrastructure. Real-time delivery, read status tracking, filtering, and multi-channel support — without third-party services or complex integrations.
Notifications That Just Work
Every application needs notifications. Baasix provides a complete notification system out of the box.
Send in-app notifications that appear instantly via WebSocket. Track read status, filter by type, and manage notification preferences per user. Extend to email and push notifications with simple configuration. The notification API integrates seamlessly with workflows, hooks, and external events — making it easy to notify users when something important happens in your application.
- Real-time in-app notifications via WebSocket
- Read/unread status tracking with timestamps
- Notification types for categorization and filtering
- Per-user notification preferences and muting
- Batch send to user groups or all users
- Email notifications with template support
- Persistent storage for notification history
Skip the Notification Service Complexity
Building a notification system from scratch takes weeks. Baasix gives you one instantly.
✓ With Baasix
- Notification API ready to use immediately
- Real-time delivery via built-in WebSocket
- Read tracking and filtering included
- Works with auth system automatically
- Extend with email via simple config
✗ Traditional Approach
- Integrate Firebase, OneSignal, or custom service
- Set up separate WebSocket infrastructure
- Build read status tracking from scratch
- Handle user-notification permissions manually
- Configure multiple providers for multi-channel
Send Notifications Programmatically
Trigger notifications from hooks, workflows, or external services.
POST /api/notifications
{
"recipient_Id": "user-uuid-here",
"title": "New Comment",
"message": "John commented on your post",
"type": "comment",
"data": {
"postId": "post-123",
"commentId": "comment-456"
}
}The notification is stored, delivered in real-time to connected clients, and queryable via the API.
Notification Capabilities
Real-time Delivery
Notifications appear instantly in connected clients via WebSocket. No polling, no delays — users see updates as they happen.
Smart Filtering
Query notifications by type, read status, date range, and custom criteria. Build notification centers with categories and tabs.
Email Channel
Send email notifications using built-in email templates. Configure SMTP and start sending without external services.
Push Ready
Extend to mobile push notifications via Firebase or APNs. Store device tokens and send to specific devices or all user devices.
Preferences & Muting
Let users control what notifications they receive. Per-type preferences, do-not-disturb modes, and digest options.
History & Analytics
Track notification delivery, open rates, and engagement. Query historical notifications for audit and reporting.
Keep Users Informed and Engaged
From social interactions to transactional alerts, notifications drive engagement.
Social & Community Apps
Notify users about likes, comments, follows, and mentions. Real-time updates keep conversations flowing and users engaged.
E-commerce & Orders
Order confirmations, shipping updates, delivery notifications, and promotional alerts. Keep customers informed throughout their journey.
Collaboration Tools
Task assignments, deadline reminders, document updates, and team mentions. Keep distributed teams in sync with timely notifications.
Admin & System Alerts
Security alerts, system status updates, usage warnings, and approval requests. Keep administrators informed of important events.
Notification FAQ
How do I send notifications to multiple users?
Use the batch endpoint with an array of user IDs, or target by role/group. Baasix handles the distribution and tracks delivery for each recipient individually.
Can I schedule notifications for later?
Yes! Set a scheduled_at timestamp when creating a notification. Combine with workflows to create complex notification sequences and drip campaigns.
How long are notifications stored?
Notifications are stored indefinitely by default. Configure retention policies to auto-delete old notifications or archive them for compliance.
Can users unsubscribe from specific notification types?
Absolutely. The preferences system lets users opt out of specific notification categories while still receiving important alerts. You control what's mandatory.
Ready to build faster?
Join developers who are shipping production-ready backends in hours, not weeks.