For the complete documentation index, see llms.txt. This page is also available as Markdown.

Secret

class Secret

An interface for working with secrets on Redivis, which can either be stored under an organization or user. In order to access organization secrets, you must be an administrator of that organization.

Constructors

organization.secret(name)

Create a reference to a secret owned by an organization.

user.secret(name)

Create a reference to a secret owned by a user.

Examples

# secrets are case-sensitive
secret = redivis.user("my_username").secret("EXTERNAL_API_TOKEN")

# Avoid printing secrets, but rather pass them to other methods as needed
make_http_request("https://example.com/api", auth_token=secret.get_value())

Methods

secret.get_value()()

Get the value of a secret, as a string

Was this helpful?