Relay control api