{ "id": 42, "user_id": 12, "type": "system", // "system" | "script" | "aside" "icon": "home", // Load from icon pack or url to img "title": "The notification", "body": "body of notification", "link": "http://...", "create_at": "2025-07-28 18:35" }
/api/v1/notifications/list
Список непрочитанных уведомлений
{ "status": "ok", "notifications": { notification_struct... }, "total": 10 }
/api/v1/notifications/id/{{id}}/read
Отметить выбранноео уведомление как прочитанное
{ "status": "ok", "notification": notification_struct... }
/api/v1/notifications/new
Запушить новое уведомление. Примечания:
type
будет установлен в aside{ "icon": "home", // Load from icon pack or url to img "title": "The notification", "body": "body of notification", "link": "http://...", }
{ "status": "ok", "notification": notification_struct... }
{ "status": "error", "message": "Permissions error" // "Permission error" }