POST
/
api
/
v1
/
sources
/
add
/
databricks
/
Add Databricks connection
curl --request POST \
  --url https://api.camelai.com/api/v1/sources/add/databricks/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "<string>",
  "account_name": "Databricks",
  "server_hostname": "<string>",
  "http_path": "<string>",
  "access_token": "<string>",
  "catalog": "<string>",
  "selected_schemas": [
    "<string>"
  ]
}'
{
  "id": 123
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme

Body

application/json

Serializer for Databricks SQL Warehouse connections.

type
string
required

Connection type identifier. Must be DATABRICKS

Minimum length: 1
server_hostname
string
required

Workspace hostname (e.g. adb-1234567890.1.azuredatabricks.net)

Required string length: 1 - 255
http_path
string
required

SQL Warehouse HTTP path

Required string length: 1 - 500
access_token
string
required

Personal Access Token with permission to query the warehouse

Required string length: 1 - 4096
account_name
string
default:Databricks

Display name for the connection

Minimum length: 1
catalog
string

Optional Unity Catalog to use by default

selected_schemas
string[]

Schemas to index. Accepts either schema or catalog.schema entries.

Response

id
integer

The ID of the created connection