Skip to main content
POST

Create notification

POST /api/notifications Create a notification for a user.

Headers

Session cookie (login via POST /api/auth/login)

Body parameters

integer
required
Target user ID.
string
required
Notification type: system, message, campaign, payment.
string
required
Notification title.
string
required
Notification body.
string
URL to navigate on click.

Send notification

POST /api/notifications/:id/send Send a previously created notification to the user.