Core of the api built