add events api