Add challenges api

Add challenges api