WIP: export history endpoint to api client