Skip to content

Environments

An environment is a named set of variables. Pick one in the top-right selector and every {{placeholder}} in your request resolves against it.

  • Plain stringsbase_url, team_id, version.
  • Secretsapi_token, client_secret. On desktop, secrets are stored as SecretRef handles in the encrypted main-process store and never appear in the renderer or in exports.
  • Environment-scoped overrides — a variable in the active environment beats the same name in the collection-scope variable table.

When {{base_url}} is encountered, Restura looks in this order, picking the first match:

  1. Request-scope variables — set inline on the request itself or by a pre-request script (pm.variables.set('base_url', ...)).
  2. Active environment — the selected environment’s variable table.
  3. Collection-scope variables — defined on the parent collection.
  4. Globals — workspace-wide values.

If none match, the placeholder is left as-is so you can spot the typo.

  • Top-right environment selector switches in one click.
  • Workflows can override the environment at run-time.
  • The CLI accepts --env <name> to pick an environment for a CI run.

Postman-compatible helpers work in any {{...}} placeholder:

  • {{$randomUUID}} — fresh UUID per request.
  • {{$timestamp}} — current epoch seconds.
  • {{$isoTimestamp}} — ISO 8601 timestamp.
  • {{$guid}} — alias for $randomUUID.
  • Keep secrets out of collection-scope variables — anyone you share an exported collection with sees those values (unless you redact on export, which is wise).
  • Use the environment diff view (when staging vs production are open side by side) to spot drift.
  • Authentication — tokens stored as SecretRef.
  • Workflows — extract values from responses and stash them as environment variables.
  • Scriptspm.environment.set(...), pm.environment.get(...).