Adds event for API