---
title: "searchVariables"
method: POST
path: "/v1/template-variables:search"
tags: ["Templates"]
---

# searchVariables

`POST /v1/template-variables:search`

Search variables

## Request body

- object
  - `template_type` 'email' | 'document', required
  - `query` string, required — Search string
  - `from` integer
  - `size` integer
  - `lang` string — 2-letter language code (ISO 639-1)
  - `entity_schemas` string[]

## Response `200`

ok

- VariableResult[]
  - `type` 'simple' | 'partial'
  - `qrdata` string — Payload for the QR data
  - `group` string — Variable group
  - `insert` string — The value which is used to insert to template
  - `description` string — Variable description

---

[API](https://skmtc.dev/epilot/apis/template-variables-api.md) · [All operations](https://skmtc.dev/epilot/apis/template-variables-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/epilot/template-variables-api/revisions/ff0c1e3dc198/schema)
