Building the API foundation