---
title: "Gets all direktiv variables in a namespace"
method: GET
path: "/api/v2/namespaces/{namespace}/variables"
tags: ["variables"]
---

# Gets all direktiv variables in a namespace

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

## Path parameters

- `namespace` string, required

## Query parameters

- `workflowPath` string
- `instanceId` string
- `name` string

## Response `200`

list of direktiv variables

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