First cut API prototype