api endpoint events