API switching working in sandbox