Fixed api endpoints