Overview
The NotificationCreated event is published when a notification is generated for a user based on an action or event.
Example Payload
{ "eventId": "evt_notif_123", "eventType": "NotificationCreated", "timestamp": "2025-12-11T19:00:00Z", "version": "1.0.0", "data": { "notificationId": "notif_abc123", "userId": "usr_jane_smith", "workspaceId": "ws_acme_corp", "type": "task_assigned", "priority": "normal", "title": "You were assigned to a task", "message": "John Doe assigned you to 'Implement user authentication'", "actionUrl": "/tasks/task_12345", "relatedEntity": { "type": "task", "id": "task_12345" }, "channels": ["in_app", "email"], "createdAt": "2025-12-11T19:00:00Z" }}Downstream Actions
- Email Service: Sends email if channel includes ‘email’
- Push Service: Sends push if channel includes ‘push’
- WebSocket: Delivers to active sessions immediately