Notifications API
Send and manage notifications via email, SMS, and other channels
Overview
The Notifications API allows you to send notifications through various channels and track their delivery status. Perfect for automated emails, alerts, and communication workflows.
Supported Channels
- SMS (planned)
- Push notifications (planned)
Features
- Smart email templates with type-specific formatting
- Priority indicators (urgent, high, normal, low)
- Status change visualizations
- Message sender tracking
- Delivery tracking
- Read/unread status tracking
- Notification counts and statistics
- Action buttons
- Batch operations
| Method | Endpoint | Description | Requirements |
|---|---|---|---|
| Sending Notifications | |||
| POST | /api/notifications/send | Send a notification via specified channel |
|
| Retrieving Notifications | |||
| GET | /api/notifications/list/all | Get a list of notifications for a recipient |
|
| GET | /api/notifications/count/stats | Get notification counts and statistics for a recipient |
|
| GET | /api/notifications/{id} | Retrieve notification status and delivery information |
|
| Read Status Management | |||
| POST | /api/notifications/{id}/read | Mark a single notification as read |
|
| POST | /api/notifications/{id}/unread | Mark a single notification as unread |
|
| POST | /api/notifications/read-all | Mark all notifications as read for a recipient |
|
Request Examples
Supported Notification Types
Each type automatically applies appropriate icons, formatting, and special features.
Send Message Notification
POST /api/notifications/send
Send Status Change Notification
POST /api/notifications/send
Send Alert Notification
POST /api/notifications/send
Response
Check Notification Status
GET /api/notifications/notif_abc123def456
List Notifications
GET /api/notifications/list/all?recipient_email=customer@example.com&unread_only=true&limit=10
Get Notification Counts & Statistics
GET /api/notifications/count/stats?recipient_email=customer@example.com
Mark Notification as Read
POST /api/notifications/notif_abc123/read
Mark All Notifications as Read
POST /api/notifications/read-all
Request Body:
Response: