The call to api was using a hardcoded link which was wrong.