add event api