Updated api call