parameterized api host for different environments