Is there any javascript API to use your layout to show simple messages instead of any pre-created notification? Basically I would like to use one messaging UI to show your notification with all targeting specified as well as my custom messages (like error/sucess messages)
Yes, there is one. We'll build smart notifications on top of the API. Once we gain some confidence using our own API, we'll make it publicly available.