You connect to the vSphere Automation REST API services through the /api base path.
The vSphere Automation REST API services append to the /api base path, following the host and port segments of the URL.
For example, you can reach the Session service through the following URL.
https://<vcenter_server_ip_address_or_fqdn>/api/session
For the full list of vSphere Automation API services, see the vSphere Automation API Reference.
Starting with vSphere 7.0 Update 2, you should use the /api base path to connect to the vSphere Automation API. The old /rest base path has been deprecated and will be removed in a future release. All existing and non-deprecated HTTP operations that use the /rest base path are available on the /api base path, which will remain the only active base path after the /rest base path is removed.