Skip to main content
Organization environment variables are available to Spark jobs and scripts at runtime. Names must start with a letter or underscore, contain only letters, numbers, and underscores, and are normalized to uppercase server-side.

listEnvironmentVariables()

List all organization environment variables. Values are decrypted server-side.

Return type: EnvironmentVariable[]

FieldTypeDescription
idstringVariable ID
namestringVariable name (stored uppercase)
valuestringDecrypted value
organization_idstringOwning organization
created_by_user_idnullable stringUser who created the variable
created_atstringISO timestamp when created
updated_atstringISO timestamp when last updated

getEnvironmentVariable(name)

Get a single environment variable by name. Lookup is case-insensitive since names are stored uppercase. Returns undefined when not set.

setEnvironmentVariable(name, value)

Create or update an environment variable. Setting an existing name overwrites its value.

deleteEnvironmentVariable(options)

Delete an environment variable by id or name. Provide exactly one.
Throws an error if the named variable does not exist.