Can you look to add finding the Web Service host from deadlinecommand like you can Pulse and the Remote Connection Server so we can ascertain the API endpoint from it.
GetPulseInfos and related commands
GetProxyServerInfos and related commands
Missing IMO, probably as it was split from Pulse in v8:
GetWebServiceInfos and related commands
We can find the port here via GetRepositoryOption WebServicePort but not the host