improve webapi for send notification