Skip to main content
client.agent_vault.sessions.revoke() revokes a session. Revoke a session when its agent finishes, even if the agent fails. The proxy stops attaching credentials to the session’s requests within one poll interval. If the agent can run longer than the client’s access token lasts, log in again before you revoke the session, because the SDK doesn’t renew the access token on its own. Set ttl close to how long the agent runs, so that the session expires soon after the agent finishes even if revoking the session fails.

Parameters

str
required
The ID of the session.

Returns

AgentVaultSession
The revoked session, with accessBundle and services set to None (call get for them).