Overview
LiteClient supports dynamic variable substitution using the{{variableName}} syntax. Variables can be used throughout your requests to create reusable, environment-specific configurations.
Variable Syntax
Variables are enclosed in double curly braces:Where Variables Work
Variables can be used in:- URLs:
{{baseUrl}}/api/users/{{userId}} - Headers: Both keys and values
- Request body: All body modes (JSON, form-data, etc.)
- Authentication credentials: API keys, OAuth parameters
Variable Types
LiteClient usesEnvironmentVariable objects with the following properties:
id- Unique identifiername- Variable name (used in{{name}}syntax)initialValue- The variable’s valuetype- Eitherdefaultorsecretenabled- Boolean flag to enable/disable the variable
Only enabled variables are resolved during request execution.
Variable Resolution Order
When a request is executed, LiteClient resolves variables using a layered precedence system. The narrowest scope wins:Global Variables
Global variables are always available regardless of the selected environment. They provide base values accessible across all requests.
Collection Variables
Collection-scoped variables override global variables. These are specific to requests within a collection.
Resolution Example
If you have:- Global variable:
baseUrl = https://api.example.com - Collection variable:
baseUrl = https://api.dev.example.com - Environment variable:
baseUrl = https://api.staging.example.com
https://api.staging.example.com (environment scope wins).
Autocomplete
LiteClient provides an autocomplete dropdown when typing variables:- Type
{{to trigger autocomplete - Start typing the variable name
- Use arrow keys to navigate available variables
- Press Enter to select
Creating Variables
Global Variables
Global variables are always available:Environment Variables
Create environment-specific variables:Best Practices
Use Descriptive Names
Name variables clearly:
apiBaseUrl instead of url, authToken instead of tokenSecret Variables
Mark sensitive data (API keys, tokens) as
secret typeGlobal for Shared Values
Use global variables for values shared across all environments
Environment for Configs
Use environments to manage different configurations (dev, staging, prod)