Updated api endpoints