added a get api call