Changed getApiRoot to be sync, w/ no callback