Add api event.