Sending own notification

Hello, everyone!

Could you please advise me in which direction I need to study the internal design of seafile to teach it to send its own notifications to individual users, using api?