Notifications API
Endpoints for managing notifications and user preferences.Get Notifications
Retrieve user notifications.Query Parameters
| Parameter | Type | Description |
|---|---|---|
limit | number | Results per page (default: 20) |
offset | number | Pagination offset |
unread | boolean | Filter unread only |
type | string | Filter by notification type |
Get Unread Count
Get count of unread notifications.Mark as Read
Mark notifications as read.Single Notification
Mark All Read
Delete Notification
Delete a notification.Notification Types
| Type | Description |
|---|---|
loan_created | Loan request created |
loan_funded | Loan has been funded |
loan_due_reminder | Payment due reminder |
loan_overdue | Loan is overdue |
loan_repaid | Loan successfully repaid |
guardian_request | Guardian invitation received |
guardian_accepted | Guardian accepted invitation |
withdrawal_requested | Social Vault withdrawal pending |
withdrawal_approval_needed | Guardian approval needed |
vault_locked | Social Vault locked (duress) |
trust_score_updated | Trust Score changed |
level_up | User leveled up |
badge_earned | New badge earned |
Notification Preferences
Get Preferences
Update Preferences
Register Push Token
Register device for push notifications.Unregister Push Token
Remove device from push notifications.Test Notification
Send a test notification (development only).Error Responses
| Code | Error | Description |
|---|---|---|
| 404 | NOTIFICATION_NOT_FOUND | Notification doesn’t exist |
| 400 | INVALID_TOKEN | Invalid push token format |
| 429 | RATE_LIMITED | Too many requests |