Sample data
Preview templates against JSON, save reusable data sets, and push demo data from your own systems.
To preview a template you provide sample data — a JSON object whose keys match the Liquid placeholders in your template.
The data panel
Open the Data panel on the left of the editor and paste a JSON object:
{
"customer": { "name": "Acme Corp", "vip": true },
"invoice": {
"date": "2026-01-15",
"total": 1250,
"lines": [
{ "label": "Consulting", "amount": 1000 },
{ "label": "Support", "amount": 250 }
]
}
}The preview re-renders live as you edit either the template or the data. If the data has a Liquid error, the last valid preview stays on screen so the page never blanks out mid-edit.
Saved sample data
You can save a data set under a name and reload it later. When saved samples
exist, a dropdown appears above the data textarea to load one, with a × to
delete it. This is handy for testing a template against several realistic
scenarios (small invoice, large invoice, edge cases…).
Pushing demo data from your systems
You can also create sample data programmatically — useful to capture a real payload from your application and replay it in the editor. Send your JSON to the demo-data endpoint with an API key:
curl -X POST https://api.generatr.app/v1/demo-data/{slug} \
-H "Authorization: Bearer wt_your_key" \
-H "Content-Type: application/json" \
-d '{ "customer": { "name": "Acme Corp" } }'The payload is saved as a named sample (auto-named {slug}-YYYY-MM-DD-HHmm) and
becomes available in the editor's sample dropdown.