---
title: "Get the static task list for a Databricks job"
method: GET
path: "/api/v1/databricks/jobs/{job_id}/tasks-inventory"
tags: ["DATABRICKS", "Databricks", "Databricks Jobs"]
---

# Get the static task list for a Databricks job

`GET /api/v1/databricks/jobs/{job_id}/tasks-inventory`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/api/v1/databricks/jobs/{job_id}/tasks-inventory`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Return every task defined on the job's workflow DAG (regardless
of whether the task has been run or has an Auto Tune
recommendation). Sourced from ``dbx_job_tasks_inventory``.

The Auto Tune drawer DAG and the overview "Tasks" tile use this as
the authoritative task list so they don't depend on the recs feed
or task-runs windowing for the denominator.

``workspace_id`` only scopes the ``estimated_cost_per_hr`` lookup
(:func:`get_task_estimated_cost_per_hr_map`) — the ClickHouse
``depends_on_map`` / ``cluster_map`` reads are pre-existing scope
and remain ``(job_id, instance_id)``-only, so a cross-workspace
``job_id`` collision could still surface the wrong cluster spec.

## Path parameters

- `job_id` string, required

## Query parameters

- `instance_id` integer, required: Databricks instance id
- `workspace_id` string, nullable: Optional Databricks workspace_id to scope the cost lookup to a specific workspace within the tenant's Databricks account. Defends against cross-workspace job_id collisions. When None, falls back to (instance_id, entity_id) lookup.

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- JobTasksInventoryResponse: Full static task list of a Databricks job — every task in the workflow, including ones that have not run yet. Sourced from ``dbx_job_tasks_inventory`` (Type-2 SCD; latest row per task).
  - `job_id` string, required
  - `tasks` JobTaskInventoryItem[], required
    - `task_key` string, required
    - `depends_on_keys` string[]
    - `current_worker_node_type` string, nullable
    - `current_driver_node_type` string, nullable
    - `current_min_workers` integer, nullable
    - `current_max_workers` integer, nullable
    - `cluster_name` string, nullable
    - `is_auto_scaling` boolean, nullable
    - `photon_enabled` boolean, nullable
    - `estimated_cost_per_hr` number, nullable
  - `total_count` integer, required

## Other responses

- `403`: Not authorized
- `422`: Validation Error

---

[API](https://skmtc.dev/myaltimate/apis/fastapi.md) - [All operations](https://skmtc.dev/myaltimate/apis/fastapi/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/fastapi/revisions/e0c123b49501?raw)
