Add notification mail to associated user/executive when a deal is added through api

I want to send a notification mail to associated user/executive when a deal is added into pipeline through api. Can anyone please help in this?

Do you specifically want to do this via API and is there a reason for this?
Otherwise, you can always use the in-app settings that send notifications or better yet, use Webhooks for this.