---
title: "The backend-owned template variable catalog: every {{token}} the render
pipeline knows, with label, description, applicable template types, and
the sample value previews use. The editor's variable picker and
autocomplete derive from this."
method: GET
path: "/templates/variables"
tags: ["Templates"]
---

# The backend-owned template variable catalog: every {{token}} the render
pipeline knows, with label, description, applicable template types, and
the sample value previews use. The editor's variable picker and
autocomplete derive from this.

`GET /templates/variables`

## Query parameters

- `type` string

## Response `200`

OK

- TemplateVariableDto[]
  - `name` string — The token between the braces, e.g. "patient_name".
  - `tag` string — The full insertable token, e.g. "{{patient_name}}".
  - `label` string — Human-readable name shown in the editor's variable picker.
  - `description` string
  - `types` string[] — Template types whose render path populates this variable. Empty for legacy variables no current render path populates.
  - `sampleValue` string, nullable — Realistic value substituted in editor previews.

---

[API](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1.md) · [All operations](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clinicos/pawthosx-business-api-v1/revisions/a905bde4e796/schema)
