---
title: "Fetches a direktiv variable"
method: GET
path: "/api/v2/namespaces/{namespace}/variables/{variableID}"
tags: ["variables"]
---

# Fetches a direktiv variable

`GET /api/v2/namespaces/{namespace}/variables/{variableID}`

## Path parameters

- `namespace` string, required
- `variableID` string, required — id string of the variable

## Response `200`

data of the direktiv  variable

- object
  - `data` object
    - `id` string — a unique string that represent id of the variable
    - `type` string — enum value ("namespace-variable", "workflow-variable", "instance-variable")
    - `reference` string — a reference to the object the variable linked to
    - `name` string — a unique name string of the variable (unique within the referenced object)
    - `size` number — data size (in bytes) of the variable's data
    - `mimeType` string — mime type of the variable's data
    - `data` string — base64 encoded string of the variable's data
    - `createdAt` string — timestamp of creation date
    - `updatedAt` string — timestamp of last updating date

---

[API](https://skmtc.net/direktiv/apis/direktiv-apiv2-reference.md) · [All operations](https://skmtc.net/direktiv/apis/direktiv-apiv2-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/direktiv/direktiv-apiv2-reference/revisions/ad935afb0f54/schema)
