upated api for list-all-events.