Add api method for listing events