---
title: "Get total cost with category breakdown"
method: GET
path: "/api/v1/databricks/cost/total"
tags: ["DATABRICKS", "Databricks", "Databricks Cost"]
---

# Get total cost with category breakdown

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

Get total cost with category breakdown.

Returns total cost and DBUs with breakdown by cost category
(Compute, SQL, AI/ML, Data Platform, Infrastructure).

## Query parameters

- `start_date` string, date, required — Start date for the period
- `end_date` string, date — End date for the period
- `workspace_id` string, nullable — Filter by workspace ID
- `navigationSource` string, nullable

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- CostTotalResponse — Response model for total cost endpoint with category breakdown.
  - `total_dbus` number, required — Total DBU consumption
  - `total_cost` number, required — Total cost
  - `currency` string — Currency code
  - `category_breakdown` CategoryBreakdownItem[], required — Cost breakdown by category
    - `category` 'Compute' | 'SQL' | 'AI/ML' | 'Data Platform' | 'Infrastructure', required — Cost category classification for Databricks SKUs.
    - `total_dbus` number, required — Total DBUs for this category
    - `estimated_cost` number, required — Estimated cost for this category
    - `pct_of_total` number, required — Percentage of total cost
  - `days_count` integer, required — Number of days in the period
  - `delta_pct` number, nullable — Percentage change vs previous period

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