retrieve cohort api and frontend