Adding events api