Environments

Environments provide named variable sets for Collections. Select an active environment, write requests with {{variable}}, and Requestarium resolves the variable when you send.

Typical environments are Local, Staging, and Production. Typical variables:

host=https://api.example.test
token=...
workspace_id=...

Environment model

Requestarium stores environments inside environment groups.

ObjectPurpose
Environment groupA logical group such as Payments or Billing. It can define the list of variable keys expected by its environments.
EnvironmentA named variable set inside a group, such as Local, Staging, or Production.
Variable keyThe name used in templates, for example host or token.
Variable valueThe value for one environment only. The same key can have different values in Local and Staging.

Example:

GroupEnvironmenthosttoken
PaymentsLocalhttp://127.0.0.1:8080local token
PaymentsStaginghttps://payments-staging.example.comstaging token

Selecting an environment

Use the environment selector in the Collections header to choose the active environment. The selection is saved locally for the current organization and workspace.

Choose No environment when a request should rely only on collection or folder variables, dynamic variables, or values created by scripts.

Creating environments

  1. Open the environment selector.
  2. Choose create environment.
  3. Enter an environment name.
  4. Select an existing group or enter a new group name.
  5. Add variable keys to the group if all environments in that group should share them.
  6. Set values for the selected environment in the Variables panel.

Use the group editor to rename a group or add many expected keys at once. Keys can be entered one per line or separated by commas.

Using variables

Variables work in URLs, headers, bodies, GraphQL variables, message payloads, and settings that support templating.

GET {{host}}/api/internal/tokens
Authorization: Bearer {{token}}
{
  "accountId": "{{account_id}}",
  "traceId": "{{$guid}}"
}

Postman-style dynamic variables such as {{$guid}}, {{$timestamp}}, and {{$randomUUID}} are built in.

The request Variables panel shows every variable the request uses, whether it is defined, a preview value, and where it comes from: inherited, environment, global, or built-in.

Resolution order

  1. Collection and folder variables provide inherited defaults.
  2. The selected environment overrides matching inherited keys.
  3. Pre-request scripts can update request data and runtime variables before sending.
  4. Post-response scripts can store values for later requests.

Troubleshooting

ProblemWhat to check
{{host}} is not replacedSelect the right environment or add host to it.
A request hits the wrong serviceCheck which environment is selected in the Collections header.
A secret was saved by mistakeRemove it from the environment and rotate the secret.
A script cannot see a variableUse cm.variables.get(name) to read merged values, or check the Variables panel.