---
title: "Test Databricks connection credentials"
method: POST
path: "/api/v1/databricks/connections/test"
tags: ["DATABRICKS", "Databricks", "Databricks Connections"]
---

# Test Databricks connection credentials

`POST /api/v1/databricks/connections/test`

## Headers

- `x-tenant` string, required

## Request body

- union
  - DatabricksConnectionTestRequestPAT
    - `type` string
    - `server_hostname` string, required — Databricks workspace hostname. Must end in cloud.databricks.com, azuredatabricks.net, or gcp.databricks.com.
    - `http_path` string, required — SQL warehouse HTTP path. Derived from `sql_warehouse_id` when that is supplied; still accepted directly for the pre-consolidation shape.
    - `workspace_url` string, nullable — Workspace URL as the customer sees it, with or without scheme (AWS *.cloud.databricks.com, Azure adb-*.azuredatabricks.net). `server_hostname` is derived from it.
    - `sql_warehouse_id` string, nullable — SQL warehouse id; `http_path` is derived from it.
    - `name` string
    - `auth_type` 'pat'
    - `access_token` string, required
  - DatabricksConnectionTestRequestOAuthM2M
    - `type` string
    - `server_hostname` string, required — Databricks workspace hostname. Must end in cloud.databricks.com, azuredatabricks.net, or gcp.databricks.com.
    - `http_path` string, required — SQL warehouse HTTP path. Derived from `sql_warehouse_id` when that is supplied; still accepted directly for the pre-consolidation shape.
    - `workspace_url` string, nullable — Workspace URL as the customer sees it, with or without scheme (AWS *.cloud.databricks.com, Azure adb-*.azuredatabricks.net). `server_hostname` is derived from it.
    - `sql_warehouse_id` string, nullable — SQL warehouse id; `http_path` is derived from it.
    - `name` string
    - `auth_type` 'oauth_m2m', required
    - `client_id` string, required
    - `client_secret` string, required
    - `azure_tenant_id` string, nullable

## Response `200`

Successful Response

- DatabricksConnectionTestResponse
  - `ok` boolean, required
  - `message` string, nullable
  - `workspace_id` string, nullable
  - `catalogs` string[], nullable
  - `catalogs_complete` boolean
  - `cloud_warning` string, nullable
  - `current_catalog` string, nullable
  - `metastore_id` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-02** `fcb62c79da95` — 7 info
  - endpoint reactivated
  - added the new optional request property `oneOf[subschema #1: DatabricksConnectionTestRequestPAT]/sql_warehouse_id`
  - added the new optional request property `oneOf[subschema #1: DatabricksConnectionTestRequestPAT]/workspace_url`
  - added the new optional request property `oneOf[subschema #2: DatabricksConnectionTestRequestOAuthM2M]/sql_warehouse_id`
  - …3 more

[Change history](https://skmtc.dev/myaltimate/apis/fastapi/changes/api/v1/databricks/connections/test/post.md)

---

[API](https://skmtc.dev/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.dev/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/myaltimate/fastapi/revisions/fcb62c79da95/schema)
