Skip to main content

Interface: WorkspaceClient

AppKit's workspace client facade. Mirrors the multi-client shape of the modular Databricks SDK: each service is its own accessor, so services can be migrated one at a time behind this stable interface.

Extends

  • WorkspaceAuth

Properties

apps

readonly apps: AppsClient;

Databricks Apps (modular SDK).


connections

readonly connections: ConnectionsClient;

Unity Catalog Connections (modular SDK).


currentUser

readonly currentUser: ScimClient;

Current user (modular SDK SCIM client; me({}) returns the caller).


database

readonly database: DatabaseClient;

Lakebase provisioned database instances + credentials (modular SDK).


experiments

readonly experiments: ExperimentsClient;

MLflow Experiments (modular SDK).


files

readonly files: FilesClient;

UC Volumes / Files API (modular SDK).


functions

readonly functions: FunctionsClient;

Unity Catalog Functions (modular SDK).


genie

readonly genie: GenieClient;

Genie (modular SDK).


jobs

readonly jobs: JobsClient;

Jobs (modular SDK, Jobs API 2.2).


modelServing

readonly modelServing: ModelServingClient;

Serving endpoints (modular SDK).


postgres

readonly postgres: PostgresClient;

Lakebase Postgres: autoscaling projects, branches, endpoints (modular SDK).


statementExecution

readonly statementExecution: StatementExecutionClient;

Statement Execution (modular SDK).


tables

readonly tables: TablesClient;

Unity Catalog Tables (modular SDK).


vectorSearch

readonly vectorSearch: VectorSearchClient;

Vector Search (modular SDK; index metadata only, queries use request()).


volumes

readonly volumes: VolumesClient;

Unity Catalog Volumes (modular SDK).


warehouses

readonly warehouses: WarehousesClient;

SQL Warehouses (modular SDK).

Methods

authenticate()

authenticate(headers: Headers): Promise<void>;

Set the auth header(s) (e.g. Authorization) on headers.

Parameters

ParameterType
headersHeaders

Returns

Promise<void>

Inherited from

WorkspaceAuth.authenticate

getHost()

getHost(): Promise<string>;

Scheme-normalized workspace host, without a trailing slash.

Returns

Promise<string>

Inherited from

WorkspaceAuth.getHost

request()

request(req: WorkspaceRequest): Promise<Response>;

Send a request through the modular transport (AppKit User-Agent + auth). Returns the raw Response (body unread, so it can stream); throws ApiError on a non-2xx status.

Parameters

ParameterType
reqWorkspaceRequest

Returns

Promise<Response>

Inherited from

WorkspaceAuth.request

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs