save_secret_to_vault
Store a key-value secret in the agent’s vault.Parameters
The agent’s unique identifier.
The key name under which to store the secret (e.g.,
card_pan).The value to store. Encrypted before being written.
Response
Returns a text confirmation:"Secret saved."
Example
get_secret_from_vault
Retrieve a secret from the agent’s vault by key.Parameters
The agent’s unique identifier.
The key name to look up.
Response
Errors
| Error | Cause |
|---|---|
Vault does not exist | initialize_vault has not been called for this agentId |
Secret not found in vault | No secret exists with the given secretKey |