Added event api endpoint