Api events init