Collection Variables
Collection variables are shared across all environments in a collection. They are the baseline — environment variables override them when an environment is active.
Common Use Cases
- Base URL:
baseUrl=https://api.myapp.com - API version:
apiVersion=v2 - Shared configuration that doesn't change between environments
Managing Collection Variables
- Open the Environments tab (Globe icon in tab bar)
- Select the collection from the picker
- Click Collection Variables in the left panel
- Add, edit, or delete variables in the table
Sensitive Variables
Mark a variable as Secret type to mask its value in the UI. Masked values are shown as •••••• and can be revealed with the eye icon.
Example
Collection Variables:
baseUrl = https://api.myapp.com
apiVersion = v2
Environment: Staging
baseUrl = https://staging.api.myapp.com ← overrides collection var
Environment: Production
baseUrl = https://api.myapp.com ← same as collection var, can omit
In your request URL: {{baseUrl}}/{{apiVersion}}/users resolves based on which environment is active.