Variable Syntax
Variables use the {{variableName}} syntax and can appear anywhere in a request — URL, headers, or body.
Resolution order
Section titled “Resolution order”Variables resolve in this priority (highest wins):
- Extracted flow variables (
# @extract) — set during the current run .env.localoverrides — written by# @persist- Active
.envfile variables - File-level variables (
@key = value)
Defining variables
Section titled “Defining variables”File-level variables
Section titled “File-level variables”Defined before the first ### with @key = value:
@baseUrl = https://api.example.com@contentType = application/json@version = v2
GET {{baseUrl}}/{{version}}/usersContent-Type: {{contentType}}File-level variables can themselves reference .env variables:
@baseUrl = {{BASE_URL}}@timeout = {{TIMEOUT}}Environment variables
Section titled “Environment variables”In dev.env:
BASE_URL = https://dev-api.example.comAPI_TOKEN = dev_abc123TIMEOUT = 5000Used in requests:
GET {{BASE_URL}}/usersAuthorization: Bearer {{API_TOKEN}}Extracted variables (flow only)
Section titled “Extracted variables (flow only)”# @extract pulls values from a response and makes them available as variables in subsequent steps:
### LoginPOST {{baseUrl}}/auth/loginContent-Type: application/json
{ "email": "user@example.com", "password": "..." }
# @extract token = $.access_token# @extract userId = $.user.id
### Use token in next requestGET {{baseUrl}}/users/{{userId}}Authorization: Bearer {{token}}Variable autocomplete
Section titled “Variable autocomplete”The editor shows suggestions for all in-scope variables when you type {{. Press Tab to accept. Sources shown in autocomplete:
- File-level variables
- Active
.envfile variables - Variables extracted in earlier steps (
.flowfiles)
Using variables in URLs
Section titled “Using variables in URLs”@baseUrl = https://api.example.com@userId = 42
GET {{baseUrl}}/users/{{userId}}/posts?page=1Using variables in headers
Section titled “Using variables in headers”GET {{baseUrl}}/meAuthorization: Bearer {{API_TOKEN}}X-Request-Id: {{requestId}}Accept-Language: {{locale}}Using variables in bodies
Section titled “Using variables in bodies”POST {{baseUrl}}/usersContent-Type: application/json
{ "name": "{{userName}}", "email": "{{userEmail}}", "orgId": {{orgId}}}Note: number variables (like {{orgId}}) are injected without quotes so the JSON remains valid.