Creating notifications via the API

I think it would take a plugin. What kind of notification do you want? Can you describe your use case?