private int apiPort() {
   return credentials.getApiPort() != 80 ? credentials.getApiPort() : -1;
 }