Begin api switch