POST/notifications
Create notification
Create a new notification. Fields `id`, `createdAt`, `updatedAt` are auto-generated. Triggers `notifications.created` webhook.
ReturnsNotification
AcceptsNotificationInput
Bearer token required
Response examples
201Notification created
{
"id": 1,
"userId": 1,
"type": "error",
"title": "Error notification",
"message": "New follower on your profile.",
"read": true,
"link": null,
"createdAt": "2026-03-23T15:22:15.402Z"
}400400 — invalid input or malformed JSON
{
"error": {
"status": 400,
"message": "Request body required"
}
}413413 — body exceeds 64 KB
{
"error": {
"status": 413,
"message": "Request body too large",
"details": {
"maxSize": "64 KB"
}
}
}429429 — rate limit exceeded (120/60s)
{
"error": {
"status": 429,
"message": "Too many requests",
"details": {
"retryAfter": 45
}
}
}