{{path.to.value}} syntax.
Basic Syntax
Accessing Context Data
Request Data
| Path | Description |
|---|---|
{{request.method}} | HTTP method (GET, POST, etc.) |
{{request.path}} | Request path |
{{request.body}} | Request body (parsed JSON) |
{{request.body.fieldName}} | Specific body field |
{{request.query}} | Query parameters object |
{{request.query.paramName}} | Specific query parameter |
{{request.headers}} | Request headers |
{{request.headers.Authorization}} | Specific header |
{{request.params}} | Path parameters |
{{request.params.id}} | Specific path parameter |
Secrets and Environment Variables
Access secrets stored in your project using theenv namespace. These are sensitive values like API keys, tokens, and credentials that you’ve added via the Secrets API.
- Encrypted at rest
- Never logged in execution history
- Isolated per project
Node Outputs
Access output from previously executed nodes:HTTP Node Output
Loop Context
Inside loop nodes:| Path | Description |
|---|---|
{{item}} | Current item (or custom name via as) |
{{index}} | Current iteration index (0-based, or custom via index) |
Error Context
Inside try/catch blocks:| Path | Description |
|---|---|
{{error.message}} | Error message |
{{error.node}} | ID of the node that failed |
{{error.type}} | Type of error |
Using Pipes
Transform values inline using pipes:Expressions in Configuration
In Strings
In Objects
In Arrays
Whole Value Replacement
When a template is the entire value, it preserves the original type:fetch_data.output.body is an object, data will be that object.
Arithmetic Expressions
In transform nodes, simple arithmetic is evaluated:+, -, *, /
Condition Expressions
In condition and switch nodes:Operators
| Operator | Description |
|---|---|
== | Equal |
!= | Not equal |
> | Greater than |
>= | Greater than or equal |
< | Less than |
<= | Less than or equal |
Special Variables
| Variable | Description |
|---|---|
{{now}} | Current timestamp (ISO 8601) |
{{request_id}} | Unique request identifier |
Nested Path Access
Access deeply nested values:Default Values
Use thedefault pipe for fallback values:
Type Coercion
Templates automatically handle type coercion when needed:- String templates return strings
- Whole-value templates preserve original types
- Comparison expressions return booleans
- Arithmetic expressions return numbers
Examples
Building a URL
Dynamic Headers
Computed Response
Conditional Logic Data
Related
- Secrets - Store and use API keys and credentials
- Pipes Reference - Transform data inline
- Transform Node - Create computed values
- Set Node - Store values for later use