Get task endpoint