During the process of restoring a vCenter Server instance from a backup image, you cannot use token-based authentication. You must use basic authentication until the vCenter Server instance is fully configured.
When you restore your vCenter Server instance from a backup file, it begins in an unconfigured state. During this time, you must use basic authentication to access the Management API. When you use basic authentication, do not use the vSphere Automation API endpoint. Instead, you must connect your client to port 5480 of the vCenter Server instance.
When you use basic authentication, you must pass user name and password credentials with each request. Use credentials that are known to the guest operating system of the vCenter Server instance.