Skip to main content
Access these methods through client.secrets.

client.secrets.list

List stored secrets by name and reference, never their values. Secrets set or removed in the last few minutes may not show up yet.
Signature
Returns SecretsResponse For examples, see the Python SDK guide.

client.secrets.set

Create the secret or replace its value; runs reference it by the returned reference.
Signature
Parameters
required · str
required · str
Returns SecretEntry For examples, see the Python SDK guide.

client.secrets.remove

Delete the secret immediately; it cannot be recovered. On hosted Valkyrie a missing secret raises a 404 API error. Self-hosted deployments without a tenant access role can’t detect a missing secret, so removing one succeeds.
Signature
Parameters
required · str
Returns SecretEntry For examples, see the Python SDK guide.