---
title: "Get Tracked Variables"
method: GET
path: "/api/task_variables/tracked"
tags: ["task_dag_reads"]
---

# Get Tracked Variables

`GET /api/task_variables/tracked`

A kernel sends ``notebook_id``; a script has none and sends ``session_id``.

## Query parameters

- `notebook_id` string, nullable
- `session_id` string, nullable

## Response `200`

Successful Response

- TrackedVariablesResponse
  - `variables` TrackedVariable[]
    - `name` string, required
    - `expected_type` string, nullable, required
    - `task_id` string, required
  - `workspace_id` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-19** `bc8a81bf3914` — 1 warning, 1 info
  - removed the optional property `project_id` from the response with the `200` status
  - added the optional property `workspace_id` to the response with the `200` status
- **2026-08-12** `dcf9b4550387` — 4 info
  - added the new optional `query` request parameter `session_id`
  - the `query` request parameter `notebook_id` became optional
  - `query` request parameter `notebook_id` list-of-types was widened by adding types `null`
  - for the `query` request parameter `notebook_id`, the type/format was generalized from `string`/`` to ``/``

[Change history](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/changes/api/task_variables/tracked/get.md)

---

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