---
title: "Get total estimated cost for the year"
method: GET
path: "/api/v1/databricks/cost/total/estimate"
tags: ["DATABRICKS", "Databricks", "Databricks Cost"]
---

# Get total estimated cost for the year

`GET /api/v1/databricks/cost/total/estimate`

Get total estimated cost for the period (actual + projected).

Returns the grand total plus a per-segment breakdown for the requested
``category``. Used for Future State total cost display.

## Query parameters

- `start_date` string, date, required — Start date (typically start of year)
- `end_date` string, date, required — End date (typically end of year)
- `workspace_id` string, nullable — Filter by workspace ID
- `category` 'total' | 'clusters' | 'sql_warehouse' | 'ai_ml' | 'lakehouse' | 'platform' — Spec-group category identifier shared across the cost APIs. Used by: * ``GET /cost/trends/by-product?category=<value>`` — selects which products get filtered in and how each row's segment label is computed. * ``GET /cost/overview`` — each ``category_breakdown`` item carries one of these values. See ``CATEGORY_DEFINITIONS`` in ``app.service.databricks.cost_constants`` for the per-category filter list, segment label expression, and canonical legend order.
- `navigationSource` string, nullable

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- CostTotalEstimateResponse — Response model for total cost estimate endpoint.
  - `total` number, required — Total cost (actual + projected)
  - `currency` string — Currency code
  - `category` 'total' | 'clusters' | 'sql_warehouse' | 'ai_ml' | 'lakehouse' | 'platform' — Spec-group category identifier shared across the cost APIs. Used by: * ``GET /cost/trends/by-product?category=<value>`` — selects which products get filtered in and how each row's segment label is computed. * ``GET /cost/overview`` — each ``category_breakdown`` item carries one of these values. See ``CATEGORY_DEFINITIONS`` in ``app.service.databricks.cost_constants`` for the per-category filter list, segment label expression, and canonical legend order.
  - `segment_breakdown` EstimateSegmentTotalItem[] — Per-segment combined (actual + projected) cost breakdown for the requested ``category``, in canonical legend order.
    - `product` string, required — Segment label for this category
    - `estimated_cost` number, required — Combined actual + projected cost for the whole period
    - `pct_of_total` number, required — Share of the estimate ``total`` (0–100, one decimal). Sums to ~100 across the breakdown.

## Other responses

- `403` — Not authorized
- `404` — No ClickHouse database configured
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/50769cbf05d5/schema)
