get challenges api to give right response