Event api working