https://github.com/dwettstein/PowerShellStuff/blob/7c6b4ed6e2b3fbf9f7a5f73ea4635c86928edb91/VMware/VCloudClient/Connect-VCloud.ps1#L57 https://github.com/dwettstein/PowerShellStuff/blob/7c6b4ed6e2b3fbf9f7a5f73ea4635c86928edb91/VMware/VCloudClient/Connect-VCloud.ps1#L61 https://github.com/dwettstein/PowerShellStuff/blob/7c6b4ed6e2b3fbf9f7a5f73ea4635c86928edb91/VMware/VCloudClient/Invoke-VCloudRequest.ps1#L61 Query `/api/versions` to get the latest API versions. Use the new Bearer token `X-VMWARE-VCLOUD-ACCESS-TOKEN` when API version >= 35 (vCloud Director 10.2), else use `x-vcloud-authorization`.