| Type | Syntax | Use Case |
|---|---|---|
| Simple Variables | {{variableName}} | Insert values from parameters |
| DateTime | {{now.format(YYYY-MM-DD)}} | Current date/time with formatting |
When to use
Use interpolation when you need to:- Insert parameter values into API URLs or paths
- Add dynamic dates to requests (today, yesterday, last week)
- Reference dates from extraction datapoints
- Generate file names with timestamps
- Build parameterized query strings
Simple Variables
Replace placeholders with values from your integration’s parameters. The variable name must match exactly.Using datapoints with simple variables
To interpolate a datapoint value, add a query param with the datapoint field name. The param name becomes available as a variable.DateTime Interpolation
Insert current dates, calculate relative dates, and format output for API requirements. DateTime interpolation supports three prefixes:| Prefix | Description | Example |
|---|---|---|
now | Current date and time | {{now.format(YYYY-MM-DD)}} |
today | Alias for now | {{today.format(YYYY-MM-DD)}} |
date() | Date from a data field | {{date(order.createdAt).format(YYYY-MM-DD)}} |
Format Patterns
Use.format(pattern) to control output. Patterns follow dayjs format tokens.
| Pattern | Output Example |
|---|---|
YYYY-MM-DD | 2026-01-12 |
DD/MM/YYYY | 12/01/2026 |
YYYY-MM-DDTHH:mm:ss | 2026-01-12T15:30:00 |
HH:mm:ss | 15:30:00 |
MMMM D, YYYY | January 12, 2026 |
Timezone Conversion
Use.timezone(tz) to convert to a specific timezone before formatting. The default timezone is America/Sao_Paulo.
Date Arithmetic
Add or subtract time using.add(amount, unit) and .subtract(amount, unit).
Available units: days, weeks, months, years, hours, minutes, seconds
Using Data Fields
Reference dates from your extraction datapoints with thedate() function. Pass the field path as the argument.