Updated api with new endpoints