Setting up remote API server