---
title: "Get slow queries"
method: GET
path: "/api/v1/databricks/queries/slow"
tags: ["DATABRICKS", "Databricks", "Databricks Queries"]
---

# Get slow queries

`GET /api/v1/databricks/queries/slow`

Get slow queries (queries exceeding duration threshold).

## Query parameters

- `start_date` string, date, required — Start date
- `end_date` string, date — End date
- `min_duration_ms` integer — Minimum duration in milliseconds
- `workspace_id` string, nullable — Filter by workspace ID
- `limit` integer — Maximum number of queries
- `navigationSource` string, nullable

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- SlowQueriesResponse — Response for slow queries.
  - `queries` QueryRecord[], required
    - `statement_id` string, required
    - `statement_type` string, nullable
    - `execution_status` string, nullable
    - `start_time` string, date-time, nullable
    - `end_time` string, date-time, nullable
    - `total_duration_ms` integer, nullable
    - `read_bytes` integer, nullable
    - `spilled_local_bytes` integer, nullable
    - `workspace_id` string, nullable
    - `workspace_name` string, nullable
    - `warehouse_id` string, nullable
    - `user_name` string, nullable
    - `error_message` string, nullable
  - `min_duration_ms` integer, required
  - `total_count` integer, required

## 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/103580dad816/schema)
