Skip to main content
After you fetch 1Password secrets into an environment, reference resolved values in requests as {{name}} or {{$secrets.name}}. Both work in headers, query params, body, and auth fields.

Variable syntax

Each Name you configured under External Secrets is the variable you use in requests.
For example, with a row named username pointing at op://BrunoTestVault/login/username:
Using 1Password secrets in a request

Using secrets in scripts

Access secrets from Pre-request and Post-response scripts with bru.getSecretVar():
Make sure the 1Password account is configured and secrets are fetched (or will be fetched on demand) before using them in scripts. Names must match the environment rows exactly.

Using secrets with Bruno CLI

Supply the Service Account token with --secrets-env-file. The environment file already holds the op:// references; the CLI resolves them at run time.
Example secrets.env:
You can export this file from Preferences > Secrets Manager (see Integrating 1Password). For the full CLI reference across providers, see Secret Managers using CLI.