code: public String getBaseURL(boolean proxy) {
  		if (proxy) {
  			return getOptionsParamApi().isSecureOnly() ? API_URL_S : API_URL;
  		}
  
  		StringBuilder strBuilder = new StringBuilder(50);
  		strBuilder.append("http");
  		if (getOptionsParamApi().isSecureOnly()) {
  			strBuilder.append('s');
  		}
  		strBuilder.append("://")
  				.append(getProxyParam().getProxyIp())
  				.append(':')
  				.append(getProxyParam().getProxyPort())
  				.append('/');
  		return strBuilder.toString();
  	}
docs: Gets the base URL to access the ZAP API, possibly proxying through ZAP.
  <p>
  If proxying through ZAP the base URL will use the custom domain, {@value #API_DOMAIN}.
  <p>
  The resulting base URL has a trailing slash, for example, {@code https://127.0.0.1/} or {@code https://zap/}.
  
  @param proxy {@code true} if the URL will be accessed while proxying through ZAP, {@code false} otherwise.
  @return the base URL to access the ZAP API.
  @since 2.7.0