Template variables let you generate dynamic, realistic data in your mock responses. Use double curly braces: {{variableName}}.
In your response body:
Each request generates fresh random data.
Access data from the incoming request:
| Variable | Description | Example |
|---|
{{params.id}} | Path parameter | /users/{id} -> {{params.id}} |
{{query.page}} | Query string | ?page=2 -> {{query.page}} |
{{body.name}} | Request body field | JSON body access |
{{headers.authorization}} | Request header | Header value |
| Helper | Output |
|---|
{{uuid}} | a1b2c3d4-e5f6-7890-... |
{{name}} | John Smith |
{{firstName}} | John |
{{lastName}} | Smith |
{{username}} | jsmith42 |
| Helper | Output |
|---|
{{address}} | 123 Main St |
{{city}} | San Francisco |
{{state}} | California |
{{zipCode}} | 94102 |
{{country}} | United States |
| Helper | Output |
|---|
{{company}} | Acme Corp |
{{jobTitle}} | Software Engineer |
| Helper | Output |
|---|
{{url}} | https://example.com/page |
{{domain}} | example.com |
{{ipv4}} | 192.168.1.1 |
| Helper | Output |
|---|
{{date}} | 2026-01-15 |
{{timestamp}} | 1737043200 |
{{pastDate}} | Date in the past |
{{futureDate}} | Date in the future |
| Helper | Output |
|---|
{{number 1 100}} | Random integer 1-100 |
{{float 0 1 2}} | Random float with 2 decimals |
{{boolean}} | true or false |
| Helper | Output |
|---|
{{lorem}} | Lorem ipsum paragraph |
{{sentence}} | Random sentence |
{{word}} | Random word |
Generate arrays of items:
}{{#unless @last}},{{/unless}}
Generates an array of 5 user objects.
See Template Helpers Reference for the complete list.