How to trigger a notification when adding a document to a collection?

It’s already some time, since this question was asked, but maybe it will help someone in the future: Error handling | Strapi Documentation