---
title: "Get warehouse cost data"
method: GET
path: "/api/v1/databricks/warehouses/{warehouse_id}/cost"
tags: ["DATABRICKS", "Databricks", "Databricks Warehouses"]
---

# Get warehouse cost data

`GET /api/v1/databricks/warehouses/{warehouse_id}/cost`

## 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/warehouses/{warehouse_id}/cost`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Get cost data for a specific warehouse.

## Path parameters

- `warehouse_id` string, required

## Query parameters

- `start_date` string, date, required: Start date for cost data
- `end_date` string, date: End date for cost data
- `granularity` string: Time granularity (day, week, month)
- `navigationSource` string, nullable

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- AppSchemasDatabricksWarehouseWarehouseCostResponse: Response for warehouse cost data.
  - `warehouse_id` string, required
  - `total_dbus` number
  - `estimated_cost` number
  - `daily_average_dbus` number
  - `daily_average_cost` number
  - `timeseries` WarehouseCostPoint[]
    - `period` string, required
    - `total_dbus` number
    - `estimated_cost` number
    - `avg_cluster_count` number, nullable

## Other responses

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

---

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