api host switch