rotate_agent_identity
Generate a new API key for an agent identity, immediately invalidating the previous key. Use for scheduled rotation or when a key is suspected compromised.
Instructions
Rotate the API key for an agent identity.
Generates a new key and immediately invalidates the previous one. The new raw key is returned ONCE in this response — store it securely. The identity itself (ID, name, history) is preserved; only the key changes.
Use this for scheduled key rotation or if a key is suspected of being compromised. To permanently disable an identity, use revoke_agent_identity.
Write operation — recorded in the audit log.
Args: identity_id: UUID of the identity to rotate (from list_agent_identities).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identity_id | Yes |