Fixed api endpoint