Skip to main content
client.agentVault().proxies.rotateToken() issues a new proxy token. The client must log in as a user or machine identity with the Admin role in the Agent Vault project. Issue a new proxy token if the current token leaked. Rotating the token also restores a revoked proxy’s access. The old token stops working right away. To restart the proxy and its agents, follow the steps in Rotate a proxy’s token.

Parameters

string
required
The ID of the proxy.

Returns

AgentVaultProxyWithTokenResponse
The proxy in proxy, and the new proxy token in proxyToken (Infisical returns the token only once).