Set up API infrastructure.