---
title: "getCustomVariable"
method: GET
path: "/v1/custom-variables/{id}"
tags: ["Custom Variables"]
---

# getCustomVariable

`GET /v1/custom-variables/{id}`

Get custom variable

## Path parameters

- `id` string, required

## Response `200`

Success

- CustomVariable
  - `id` string — ID
  - `type` 'order_table' | 'custom' | 'journey_link' | 'snippet' — Custom variable type
  - `name` string — Custom variable name
  - `key` string, required — The key which is used for Handlebar variable syntax {{key}}
  - `_tags` string[] — The tags of custom variable
  - `_manifest` string[] — The manifest IDs associated with this custom variable
  - `helper_params` string[] — The helper function parameter's names
  - `helper_logic` string — The helper function logic
  - `config` object — Variable configuration
  - `template` string, required — Handlebar template that used to generate the variable content
  - `created_at` string — Creation time
  - `created_by` string — Created by
  - `updated_at` string — Last update time
  - `updated_by` string — Updated by

## Other responses

- `403` — Forbidden
- `404` — Not found

---

[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)
