Databricks

Use Databricks to execute parameterized SQL, manage jobs and runs, control compute clusters and SQL warehouses, and work with Genie spaces. Connect with a personal access token and your Databricks workspace host URL.

SQL operations return inline JSON rows, including SQL nulls. If a statement is still running, poll Get Statement. Follow nextChunkIndex with Get Statement Chunk to retrieve additional rows, or use Cancel Statement to stop execution. Configure rowLimit and byteLimit for predictable result sizes; external-link and Arrow/CSV downloads are outside these SQL operations.

Create, update, reset, or delete jobs; run saved jobs or submit one-time workloads. Get Run exposes task run IDs, resolved task values, repair history, and pagination. Use a task run ID with Get Run Output, and Repair Run to rerun failed tasks. Most job requests use Jobs API 2.2; existing offset pagination and notebook parameter overrides retain Jobs 2.1 compatibility. List operations return one page: pass nextPageToken back as pageToken to continue.

Cluster operations support creating, configuring, starting, restarting, resizing, terminating, and permanently deleting compute. Warehouse operations support configuration, scaling, starting, stopping, and deletion. Nested settings use Databricks API field names in JSON inputs, while dedicated inputs use the names listed below.

Genie operations create and update spaces, answer natural-language questions, manage conversation history, and retrieve generated SQL, results, and charts. Reuse the conversation ID for follow-ups. Use a space's etag when updating it to avoid overwriting concurrent changes. Agent mode supports research reports and response cancellation; it must be enabled in your workspace.

Use the block

Execute parameterized SQL and retrieve result chunks, create and manage jobs, submit and repair runs, manage compute clusters and SQL warehouses, and create or update Genie spaces. Ask Genie questions or run agent research, inspect conversations, and retrieve query results and charts. Connect with a personal access token and workspace host URL.

Actions

Databricks Execute SQL

Execute a SQL statement against a Databricks SQL warehouse and return results inline. Supports parameterized queries and Unity Catalog.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesThe ID of the SQL warehouse to execute against
statementstringYesThe SQL statement to execute (max 16 MiB)
catalogstringNoUnity Catalog name (equivalent to USE CATALOG)
schemastringNoSchema name (equivalent to USE SCHEMA)
rowLimitnumberNoMaximum number of rows to return
sqlParametersjsonNoNamed parameters as [{name, value, type}]; null or omitted value represents SQL NULL
byteLimitnumberNoMaximum result size in bytes; truncation is reported in the output
onWaitTimeoutstringNoCONTINUE (default) or CANCEL execution when the wait timeout expires
waitTimeoutstringNoHow long to wait for results (e.g., "50s"). Range: "0s" or "5s" to "50s". Default: "50s"

Output

ParameterTypeDescription
totalChunksnumberNumber of result chunks
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
rowCountnumberNumber of rows in this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
columnsarrayColumn schema of the query result
↳ namestringColumn name
↳ positionnumberColumn position (0-based)
↳ typeNamestringColumn type (STRING, INT, LONG, DOUBLE, BOOLEAN, TIMESTAMP, DATE, DECIMAL, etc.)
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null
totalRowsnumberTotal number of rows in the result
truncatedbooleanWhether the result set was truncated
statementIdstringSQL statement ID of the query
statusstringStatement status (PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, CLOSED)

Databricks Get Statement

Poll a SQL statement by its ID to retrieve status and results. Use this after Execute SQL when a query runs longer than the wait timeout.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringNoSQL warehouse identifier, when required by the statement endpoint
statementIdstringYesThe ID of the statement to fetch (returned by Execute SQL)

Output

ParameterTypeDescription
totalChunksnumberNumber of result chunks
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
rowCountnumberNumber of rows in this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
columnsarrayColumn schema of the query result
↳ namestringColumn name
↳ positionnumberColumn position (0-based)
↳ typeNamestringColumn type (STRING, INT, LONG, DOUBLE, BOOLEAN, TIMESTAMP, DATE, DECIMAL, etc.)
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null
totalRowsnumberTotal number of rows in the result
truncatedbooleanWhether the result set was truncated
statementIdstringSQL statement ID of the query
statusstringStatement status (PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, CLOSED)

Databricks Get Statement Chunk

Retrieve one chunk of an INLINE SQL result using nextChunkIndex from Execute SQL or Get Statement.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
statementIdstringYesSQL statement identifier
chunkIndexnumberYesZero-based result chunk index
warehouseIdstringNoSQL warehouse identifier, when required by the statement endpoint

Output

ParameterTypeDescription
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
rowCountnumberNumber of rows in this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null

Databricks Cancel Statement

Request cancellation of an executing SQL statement; poll Get Statement to confirm its final status.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
statementIdstringYesSQL statement identifier
warehouseIdstringNoSQL warehouse identifier, when required by the statement endpoint

Output

ParameterTypeDescription
successbooleanWhether the cancellation request was accepted

Databricks List Jobs

List all jobs in a Databricks workspace with optional filtering by name.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
limitnumberNoMaximum number of jobs to return (range 1-100, default 20)
pageTokenstringNoToken for the next or previous page; takes precedence over legacy offset
offsetnumberNoLegacy Jobs 2.1 offset; prefer pageToken
namestringNoFilter jobs by exact name (case-insensitive)
expandTasksbooleanNoInclude task and cluster details in the response (max 100 elements)

Output

ParameterTypeDescription
prevPageTokenstringToken for the previous page
jobsarrayList of jobs in the workspace
↳ tasksarrayTask definitions and task run IDs; nested keys use Databricks API names
↳ task_keystringTask key
↳ run_idnumberTask run ID for Get Run Output
↳ descriptionstringTask description
↳ depends_onarray
↳ task_keystringUpstream task key
↳ outcomestringRequired outcome of a condition task
↳ existing_cluster_idstringExisting compute cluster
↳ job_cluster_keystringShared job cluster key
↳ notebook_taskobject
↳ notebook_pathstringNotebook path
↳ sourcestringWORKSPACE or GIT
↳ base_parametersobjectNotebook parameter map
↳ spark_python_taskobject
↳ python_filestringPython file path or cloud URI
↳ sourcestringWORKSPACE or GIT
↳ parametersarray
↳ spark_jar_taskobject
↳ main_class_namestringJAR entry point class
↳ parametersarray
↳ jar_uristringLegacy JAR URI
↳ spark_submit_taskobjectLegacy spark-submit task
↳ parametersarray
↳ python_wheel_taskobject
↳ package_namestringPython package name
↳ entry_pointstringPackage entry point
↳ parametersarray
↳ named_parametersobjectNamed wheel parameters
↳ sql_taskobject
↳ warehouse_idstringSQL warehouse identifier
↳ parametersobjectSQL parameters
↳ queryobject
↳ query_idstringSaved query identifier
↳ fileobject
↳ pathstringSQL file path
↳ sourcestringWORKSPACE or GIT
↳ alertobject
↳ alert_idstringSQL alert identifier
↳ subscriptionsarray
↳ pause_subscriptionsboolean
↳ dashboardobject
↳ dashboard_idstringLegacy SQL dashboard identifier
↳ subscriptionsarray
↳ custom_subjectstring
↳ pause_subscriptionsboolean
↳ run_job_taskobject
↳ job_idnumberNested job identifier
↳ job_parametersobjectNested job parameters
↳ pipeline_paramsobjectPipeline refresh settings
↳ pipeline_taskobject
↳ pipeline_idstringPipeline identifier
↳ parametersobject
↳ full_refreshboolean
↳ refresh_selectionarray
↳ full_refresh_selectionarray
↳ reset_checkpoint_selectionarray
↳ refresh_flow_selectionarray
↳ dbt_taskobject
↳ commandsarraydbt commands
↳ project_directorystring
↳ profiles_directorystring
↳ warehouse_idstring
↳ catalogstring
↳ schemastring
↳ sourcestringWORKSPACE or GIT
↳ condition_taskobject
↳ opstringComparison operator
↳ leftstringLeft operand
↳ rightstringRight operand
↳ outcomestringEvaluation result: true or false
↳ for_each_taskobject
↳ inputsstringJSON array or parameter reference to iterate over
↳ concurrencynumber
↳ taskobjectNested task definition
↳ clean_rooms_notebook_taskobject
↳ clean_room_namestring
↳ notebook_namestring
↳ etagstring
↳ notebook_base_parametersobject
↳ dashboard_taskobject
↳ dashboard_idstring
↳ warehouse_idstring
↳ subscriptionobject
↳ filtersobject
↳ alert_taskobject
↳ alert_idstring
↳ warehouse_idstring
↳ workspace_pathstring
↳ subscribersarray
↳ power_bi_taskobject
↳ warehouse_idstring
↳ connection_resource_namestring
↳ refresh_after_updateboolean
↳ power_bi_modelobject
↳ tablesarray
↳ stateobject
↳ life_cycle_statestring
↳ result_statestring
↳ state_messagestring
↳ resolved_valuesobjectResolved task parameters keyed by task type (notebook_task, spark_python_task, sql_task, and other task variants)
↳ start_timenumberTask start in epoch milliseconds
↳ end_timenumberTask end in epoch milliseconds
↳ run_page_urlstringTask run URL
↳ jobClustersarrayShared job compute definitions
↳ job_cluster_keystringCluster reference key
↳ new_clusterobjectCloud-dependent compute configuration
↳ spark_versionstring
↳ node_type_idstring
↳ num_workersnumber
↳ autoscaleobject
↳ min_workersnumber
↳ max_workersnumber
↳ hasMorebooleanWhether tasks or job clusters have additional pages
↳ jobIdnumberUnique job identifier
↳ namestringJob name
↳ createdTimenumberJob creation timestamp (epoch ms)
↳ creatorUserNamestringEmail of the job creator
↳ maxConcurrentRunsnumberMaximum number of concurrent runs
↳ formatstringJob format (SINGLE_TASK or MULTI_TASK)
hasMorebooleanWhether more jobs are available for pagination
nextPageTokenstringToken for fetching the next page of results

Databricks Get Job

Get the full definition and settings of a single Databricks job by its job ID.

Inputs and outputs

Input

ParameterTypeRequiredDescription
includeTriggerStatebooleanNoInclude current job trigger state
pageTokenstringNoToken for the next page of tasks and job clusters
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberYesThe canonical identifier of the job to retrieve

Output

ParameterTypeDescription
tasksarrayTask definitions and task run IDs; nested keys use Databricks API names
↳ task_keystringTask key
↳ run_idnumberTask run ID for Get Run Output
↳ descriptionstringTask description
↳ depends_onarray
↳ task_keystringUpstream task key
↳ outcomestringRequired outcome of a condition task
↳ existing_cluster_idstringExisting compute cluster
↳ job_cluster_keystringShared job cluster key
↳ notebook_taskobject
↳ notebook_pathstringNotebook path
↳ sourcestringWORKSPACE or GIT
↳ base_parametersobjectNotebook parameter map
↳ spark_python_taskobject
↳ python_filestringPython file path or cloud URI
↳ sourcestringWORKSPACE or GIT
↳ parametersarray
↳ spark_jar_taskobject
↳ main_class_namestringJAR entry point class
↳ parametersarray
↳ jar_uristringLegacy JAR URI
↳ spark_submit_taskobjectLegacy spark-submit task
↳ parametersarray
↳ python_wheel_taskobject
↳ package_namestringPython package name
↳ entry_pointstringPackage entry point
↳ parametersarray
↳ named_parametersobjectNamed wheel parameters
↳ sql_taskobject
↳ warehouse_idstringSQL warehouse identifier
↳ parametersobjectSQL parameters
↳ queryobject
↳ query_idstringSaved query identifier
↳ fileobject
↳ pathstringSQL file path
↳ sourcestringWORKSPACE or GIT
↳ alertobject
↳ alert_idstringSQL alert identifier
↳ subscriptionsarray
↳ pause_subscriptionsboolean
↳ dashboardobject
↳ dashboard_idstringLegacy SQL dashboard identifier
↳ subscriptionsarray
↳ custom_subjectstring
↳ pause_subscriptionsboolean
↳ run_job_taskobject
↳ job_idnumberNested job identifier
↳ job_parametersobjectNested job parameters
↳ pipeline_paramsobjectPipeline refresh settings
↳ pipeline_taskobject
↳ pipeline_idstringPipeline identifier
↳ parametersobject
↳ full_refreshboolean
↳ refresh_selectionarray
↳ full_refresh_selectionarray
↳ reset_checkpoint_selectionarray
↳ refresh_flow_selectionarray
↳ dbt_taskobject
↳ commandsarraydbt commands
↳ project_directorystring
↳ profiles_directorystring
↳ warehouse_idstring
↳ catalogstring
↳ schemastring
↳ sourcestringWORKSPACE or GIT
↳ condition_taskobject
↳ opstringComparison operator
↳ leftstringLeft operand
↳ rightstringRight operand
↳ outcomestringEvaluation result: true or false
↳ for_each_taskobject
↳ inputsstringJSON array or parameter reference to iterate over
↳ concurrencynumber
↳ taskobjectNested task definition
↳ clean_rooms_notebook_taskobject
↳ clean_room_namestring
↳ notebook_namestring
↳ etagstring
↳ notebook_base_parametersobject
↳ dashboard_taskobject
↳ dashboard_idstring
↳ warehouse_idstring
↳ subscriptionobject
↳ filtersobject
↳ alert_taskobject
↳ alert_idstring
↳ warehouse_idstring
↳ workspace_pathstring
↳ subscribersarray
↳ power_bi_taskobject
↳ warehouse_idstring
↳ connection_resource_namestring
↳ refresh_after_updateboolean
↳ power_bi_modelobject
↳ tablesarray
↳ stateobject
↳ life_cycle_statestring
↳ result_statestring
↳ state_messagestring
↳ resolved_valuesobjectResolved task parameters keyed by task type (notebook_task, spark_python_task, sql_task, and other task variants)
↳ start_timenumberTask start in epoch milliseconds
↳ end_timenumberTask end in epoch milliseconds
↳ run_page_urlstringTask run URL
jobClustersarrayShared job compute definitions
↳ job_cluster_keystringCluster reference key
↳ new_clusterobjectCloud-dependent compute configuration
↳ spark_versionstring
↳ node_type_idstring
↳ num_workersnumber
↳ autoscaleobject
↳ min_workersnumber
↳ max_workersnumber
descriptionstringJob description
parametersarrayJob parameter definitions
queueobjectJob queue settings
triggerStateobjectCurrent file-arrival, table-update, or periodic trigger state
↳ file_arrivalobject
↳ tableobject
↳ last_seen_table_statesarray
nextPageTokenstringToken for the next page of tasks or job clusters
jobIdnumberThe job ID
namestringJob name
creatorUserNamestringEmail of the job creator
runAsUserNamestringUser the job runs as
createdTimenumberJob creation timestamp (epoch ms)
formatstringJob format (SINGLE_TASK or MULTI_TASK)
maxConcurrentRunsnumberMaximum number of concurrent runs
timeoutSecondsnumberJob-level timeout in seconds (0 or null means no timeout)
scheduleobjectCron schedule configuration (quartz_cron_expression, timezone_id, pause_status)
tagsobjectKey-value tags applied to the job

Databricks Create Job

Create a Databricks job with tasks, scheduling, execution identity, and notifications.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
accessControlListjsonNoInitial permissions as [{user_name, group_name, service_principal_name, permission_level}]
namestringNoDisplay name of the job
descriptionstringNoDescription of the job
emailNotificationsjsonNoEmail recipients by event, such as {on_failure: ["ops@example.com"]}
webhookNotificationsjsonNoNotification destination IDs grouped by event
notificationSettingsjsonNoNotification preferences for skipped runs, canceled runs, and retries
timeoutSecondsnumberNoMaximum run duration in seconds; 0 disables the timeout
healthjsonNoHealth rules as {rules: [{metric, op, value}]}
schedulejsonNoQuartz schedule as {quartz_cron_expression, timezone_id, pause_status}
jobTriggerjsonNoJob trigger settings in Databricks API format
continuousjsonNoContinuous execution settings; mutually exclusive with schedule
maxConcurrentRunsnumberNoMaximum simultaneous runs allowed for this job
tasksjsonNoTask definitions using Databricks API fields, including task_key, depends_on, and notebook_task or other task types
jobClustersjsonNoShared job clusters as [{job_cluster_key, new_cluster}]
gitSourcejsonNoGit repository URL, provider, and branch, tag, or commit
tagsjsonNoJob tags as a JSON object of string keys and values
queuejsonNoQueue behavior as {enabled: true} or {enabled: false}
parametersjsonNoJob parameter definitions as [{name, default}]
runAsjsonNoExecution identity as {user_name} or {service_principal_name}
editModestringNoWhether the job can be edited in the Databricks UI
deploymentjsonNoExternal deployment metadata including kind and metadata_file_path
environmentsjsonNoTask environments as [{environment_key, spec}]
budgetPolicyIdstringNoServerless budget policy identifier
performanceTargetstringNoServerless performance mode: STANDARD or PERFORMANCE_OPTIMIZED
triggersjsonNoJob trigger definitions; cannot be combined with the singular trigger setting
environmentVariablesjsonNoNamed environment variable definitions in Databricks API format
maxRetriesnumberNoMaximum retry count; -1 retries indefinitely and 0 disables retries
minRetryIntervalMillisnumberNoMinimum time in milliseconds between attempts
retryOnTimeoutbooleanNoWhether a timed-out run should be retried
disableAutoOptimizationbooleanNoDisable serverless automatic optimization

Output

ParameterTypeDescription
jobIdnumberJob identifier

Databricks Update Job

Merge selected settings into a Databricks job and optionally remove settings or tasks.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberYesJob identifier
newSettingsjsonNoJob settings in Databricks API format; Update merges top-level fields and task keys, Reset replaces all settings
fieldsToRemovejsonNoSettings to remove, such as ["schedule", "tasks/task_key"]

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Reset Job

Replace all settings of a Databricks job.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberYesJob identifier
newSettingsjsonYesJob settings in Databricks API format; Update merges top-level fields and task keys, Reset replaces all settings

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Delete Job

Delete a Databricks job and cancel its active runs.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberYesJob identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Run Job

Trigger an existing Databricks job to run immediately with optional job-level or notebook parameters.

Inputs and outputs

Input

ParameterTypeRequiredDescription
onlyjsonNoTask keys to run; omit to run every task
queuejsonNoRun queue settings as {enabled: true} or {enabled: false}
performanceTargetstringNoServerless performance: STANDARD or PERFORMANCE_OPTIMIZED
pipelineParamsjsonNoPipeline full_refresh and selective table or flow settings
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberYesThe ID of the job to trigger
jobParametersjsonNoJob-level parameter overrides as a JSON object (e.g., {"key": "value"})
notebookParamsjsonNoNotebook task parameters as a JSON object (e.g., {"param1": "value1"})
idempotencyTokenstringNoIdempotency token to prevent duplicate runs (max 64 characters)

Output

ParameterTypeDescription
runIdnumberThe globally unique ID of the triggered run
numberInJobnumberThe sequence number of this run among all runs of the job

Databricks Submit Run

Submit a one-time task run without creating a saved job.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
accessControlListjsonNoInitial permissions as [{user_name, group_name, service_principal_name, permission_level}]
queuejsonNoQueue behavior as {enabled: true} or {enabled: false}
runAsjsonNoExecution identity as {user_name} or {service_principal_name}
runNamestringNoDisplay name of the one-time run
timeoutSecondsnumberNoMaximum run duration in seconds; 0 disables the timeout
healthjsonNoHealth rules as {rules: [{metric, op, value}]}
idempotencyTokenstringNoRetry token that prevents duplicate runs; at most 64 characters
tasksjsonNoTask definitions using Databricks API fields, including task_key, depends_on, and notebook_task or other task types
gitSourcejsonNoGit repository URL, provider, and branch, tag, or commit
webhookNotificationsjsonNoNotification destination IDs grouped by event
emailNotificationsjsonNoEmail recipients by event, such as {on_failure: ["ops@example.com"]}
notificationSettingsjsonNoNotification preferences for skipped runs, canceled runs, and retries
environmentsjsonNoTask environments as [{environment_key, spec}]
budgetPolicyIdstringNoServerless budget policy identifier
environmentVariablesjsonNoNamed environment variable definitions in Databricks API format
performanceTargetstringNoServerless performance mode: STANDARD or PERFORMANCE_OPTIMIZED

Output

ParameterTypeDescription
runIdnumberRun identifier

Databricks List Runs

List job runs in a Databricks workspace with optional filtering by job, status, and time range.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberNoFilter runs by job ID. Omit to list runs across all jobs
activeOnlybooleanNoOnly include active runs (PENDING, RUNNING, or TERMINATING)
completedOnlybooleanNoOnly include completed runs
limitnumberNoMaximum number of runs to return (range 1-24, default 20)
pageTokenstringNoToken for the next or previous page; takes precedence over legacy offset
offsetnumberNoLegacy Jobs 2.1 offset; prefer pageToken
expandTasksbooleanNoInclude the first 100 tasks and job clusters for each run
runTypestringNoFilter by run type (JOB_RUN, WORKFLOW_RUN, SUBMIT_RUN)
startTimeFromnumberNoFilter runs started at or after this timestamp (epoch ms)
startTimeTonumberNoFilter runs started at or before this timestamp (epoch ms)

Output

ParameterTypeDescription
prevPageTokenstringToken for the previous page
runsarrayList of job runs
↳ tasksarrayTask definitions and task run IDs; nested keys use Databricks API names
↳ task_keystringTask key
↳ run_idnumberTask run ID for Get Run Output
↳ descriptionstringTask description
↳ depends_onarray
↳ task_keystringUpstream task key
↳ outcomestringRequired outcome of a condition task
↳ existing_cluster_idstringExisting compute cluster
↳ job_cluster_keystringShared job cluster key
↳ notebook_taskobject
↳ notebook_pathstringNotebook path
↳ sourcestringWORKSPACE or GIT
↳ base_parametersobjectNotebook parameter map
↳ spark_python_taskobject
↳ python_filestringPython file path or cloud URI
↳ sourcestringWORKSPACE or GIT
↳ parametersarray
↳ spark_jar_taskobject
↳ main_class_namestringJAR entry point class
↳ parametersarray
↳ jar_uristringLegacy JAR URI
↳ spark_submit_taskobjectLegacy spark-submit task
↳ parametersarray
↳ python_wheel_taskobject
↳ package_namestringPython package name
↳ entry_pointstringPackage entry point
↳ parametersarray
↳ named_parametersobjectNamed wheel parameters
↳ sql_taskobject
↳ warehouse_idstringSQL warehouse identifier
↳ parametersobjectSQL parameters
↳ queryobject
↳ query_idstringSaved query identifier
↳ fileobject
↳ pathstringSQL file path
↳ sourcestringWORKSPACE or GIT
↳ alertobject
↳ alert_idstringSQL alert identifier
↳ subscriptionsarray
↳ pause_subscriptionsboolean
↳ dashboardobject
↳ dashboard_idstringLegacy SQL dashboard identifier
↳ subscriptionsarray
↳ custom_subjectstring
↳ pause_subscriptionsboolean
↳ run_job_taskobject
↳ job_idnumberNested job identifier
↳ job_parametersobjectNested job parameters
↳ pipeline_paramsobjectPipeline refresh settings
↳ pipeline_taskobject
↳ pipeline_idstringPipeline identifier
↳ parametersobject
↳ full_refreshboolean
↳ refresh_selectionarray
↳ full_refresh_selectionarray
↳ reset_checkpoint_selectionarray
↳ refresh_flow_selectionarray
↳ dbt_taskobject
↳ commandsarraydbt commands
↳ project_directorystring
↳ profiles_directorystring
↳ warehouse_idstring
↳ catalogstring
↳ schemastring
↳ sourcestringWORKSPACE or GIT
↳ condition_taskobject
↳ opstringComparison operator
↳ leftstringLeft operand
↳ rightstringRight operand
↳ outcomestringEvaluation result: true or false
↳ for_each_taskobject
↳ inputsstringJSON array or parameter reference to iterate over
↳ concurrencynumber
↳ taskobjectNested task definition
↳ clean_rooms_notebook_taskobject
↳ clean_room_namestring
↳ notebook_namestring
↳ etagstring
↳ notebook_base_parametersobject
↳ dashboard_taskobject
↳ dashboard_idstring
↳ warehouse_idstring
↳ subscriptionobject
↳ filtersobject
↳ alert_taskobject
↳ alert_idstring
↳ warehouse_idstring
↳ workspace_pathstring
↳ subscribersarray
↳ power_bi_taskobject
↳ warehouse_idstring
↳ connection_resource_namestring
↳ refresh_after_updateboolean
↳ power_bi_modelobject
↳ tablesarray
↳ stateobject
↳ life_cycle_statestring
↳ result_statestring
↳ state_messagestring
↳ resolved_valuesobjectResolved task parameters keyed by task type (notebook_task, spark_python_task, sql_task, and other task variants)
↳ start_timenumberTask start in epoch milliseconds
↳ end_timenumberTask end in epoch milliseconds
↳ run_page_urlstringTask run URL
↳ jobClustersarrayShared job compute definitions
↳ job_cluster_keystringCluster reference key
↳ new_clusterobjectCloud-dependent compute configuration
↳ spark_versionstring
↳ node_type_idstring
↳ num_workersnumber
↳ autoscaleobject
↳ min_workersnumber
↳ max_workersnumber
↳ runStatusobjectRun lifecycle and termination or queue details
↳ statestringCurrent lifecycle state
↳ termination_detailsobject
↳ codestring
↳ typestring
↳ messagestring
↳ queue_detailsobject
↳ codestring
↳ messagestring
↳ hasMorebooleanWhether tasks or job clusters have additional pages
↳ runPageUrlstringRun details URL
↳ runIdnumberUnique run identifier
↳ jobIdnumberJob this run belongs to
↳ runNamestringRun name
↳ runTypestringRun type (JOB_RUN, WORKFLOW_RUN, SUBMIT_RUN)
↳ stateobjectRun state information
↳ lifeCycleStatestringLifecycle state (QUEUED, PENDING, RUNNING, TERMINATING, TERMINATED, SKIPPED, INTERNAL_ERROR, BLOCKED, WAITING_FOR_RETRY)
↳ resultStatestringResult state (SUCCESS, FAILED, TIMEDOUT, CANCELED, SUCCESS_WITH_FAILURES, UPSTREAM_FAILED, UPSTREAM_CANCELED, EXCLUDED)
↳ stateMessagestringDescriptive state message
↳ userCancelledOrTimedoutbooleanWhether the run was cancelled by user or timed out
↳ startTimenumberRun start timestamp (epoch ms)
↳ endTimenumberRun end timestamp (epoch ms)
hasMorebooleanWhether more runs are available for pagination
nextPageTokenstringToken for fetching the next page of results

Databricks Get Run

Get the status, timing, and details of a Databricks job run by its run ID.

Inputs and outputs

Input

ParameterTypeRequiredDescription
pageTokenstringNoToken for the next page of tasks and job clusters
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
runIdnumberYesThe canonical identifier of the run
includeHistorybooleanNoInclude repair history in the response
includeResolvedValuesbooleanNoInclude resolved parameter values in the response

Output

ParameterTypeDescription
tasksarrayTask definitions and task run IDs; nested keys use Databricks API names
↳ task_keystringTask key
↳ run_idnumberTask run ID for Get Run Output
↳ descriptionstringTask description
↳ depends_onarray
↳ task_keystringUpstream task key
↳ outcomestringRequired outcome of a condition task
↳ existing_cluster_idstringExisting compute cluster
↳ job_cluster_keystringShared job cluster key
↳ notebook_taskobject
↳ notebook_pathstringNotebook path
↳ sourcestringWORKSPACE or GIT
↳ base_parametersobjectNotebook parameter map
↳ spark_python_taskobject
↳ python_filestringPython file path or cloud URI
↳ sourcestringWORKSPACE or GIT
↳ parametersarray
↳ spark_jar_taskobject
↳ main_class_namestringJAR entry point class
↳ parametersarray
↳ jar_uristringLegacy JAR URI
↳ spark_submit_taskobjectLegacy spark-submit task
↳ parametersarray
↳ python_wheel_taskobject
↳ package_namestringPython package name
↳ entry_pointstringPackage entry point
↳ parametersarray
↳ named_parametersobjectNamed wheel parameters
↳ sql_taskobject
↳ warehouse_idstringSQL warehouse identifier
↳ parametersobjectSQL parameters
↳ queryobject
↳ query_idstringSaved query identifier
↳ fileobject
↳ pathstringSQL file path
↳ sourcestringWORKSPACE or GIT
↳ alertobject
↳ alert_idstringSQL alert identifier
↳ subscriptionsarray
↳ pause_subscriptionsboolean
↳ dashboardobject
↳ dashboard_idstringLegacy SQL dashboard identifier
↳ subscriptionsarray
↳ custom_subjectstring
↳ pause_subscriptionsboolean
↳ run_job_taskobject
↳ job_idnumberNested job identifier
↳ job_parametersobjectNested job parameters
↳ pipeline_paramsobjectPipeline refresh settings
↳ pipeline_taskobject
↳ pipeline_idstringPipeline identifier
↳ parametersobject
↳ full_refreshboolean
↳ refresh_selectionarray
↳ full_refresh_selectionarray
↳ reset_checkpoint_selectionarray
↳ refresh_flow_selectionarray
↳ dbt_taskobject
↳ commandsarraydbt commands
↳ project_directorystring
↳ profiles_directorystring
↳ warehouse_idstring
↳ catalogstring
↳ schemastring
↳ sourcestringWORKSPACE or GIT
↳ condition_taskobject
↳ opstringComparison operator
↳ leftstringLeft operand
↳ rightstringRight operand
↳ outcomestringEvaluation result: true or false
↳ for_each_taskobject
↳ inputsstringJSON array or parameter reference to iterate over
↳ concurrencynumber
↳ taskobjectNested task definition
↳ clean_rooms_notebook_taskobject
↳ clean_room_namestring
↳ notebook_namestring
↳ etagstring
↳ notebook_base_parametersobject
↳ dashboard_taskobject
↳ dashboard_idstring
↳ warehouse_idstring
↳ subscriptionobject
↳ filtersobject
↳ alert_taskobject
↳ alert_idstring
↳ warehouse_idstring
↳ workspace_pathstring
↳ subscribersarray
↳ power_bi_taskobject
↳ warehouse_idstring
↳ connection_resource_namestring
↳ refresh_after_updateboolean
↳ power_bi_modelobject
↳ tablesarray
↳ stateobject
↳ life_cycle_statestring
↳ result_statestring
↳ state_messagestring
↳ resolved_valuesobjectResolved task parameters keyed by task type (notebook_task, spark_python_task, sql_task, and other task variants)
↳ start_timenumberTask start in epoch milliseconds
↳ end_timenumberTask end in epoch milliseconds
↳ run_page_urlstringTask run URL
jobClustersarrayShared job compute definitions
↳ job_cluster_keystringCluster reference key
↳ new_clusterobjectCloud-dependent compute configuration
↳ spark_versionstring
↳ node_type_idstring
↳ num_workersnumber
↳ autoscaleobject
↳ min_workersnumber
↳ max_workersnumber
runStatusobjectRun lifecycle and termination or queue details
↳ statestringCurrent lifecycle state
↳ termination_detailsobject
↳ codestring
↳ typestring
↳ messagestring
↳ queue_detailsobject
↳ codestring
↳ messagestring
repairHistoryarrayPrior repairs; pass the latest id to Repair Run
↳ idnumber
↳ task_run_idsarray
↳ statusobjectRun lifecycle and termination or queue details
↳ statestringCurrent lifecycle state
↳ termination_detailsobject
↳ codestring
↳ typestring
↳ messagestring
↳ queue_detailsobject
↳ codestring
↳ messagestring
jobParametersarrayResolved job parameter values
runDurationnumberRun duration including repairs in milliseconds
nextPageTokenstringToken for the next page of tasks or job clusters
runIdnumberThe run ID
jobIdnumberThe job ID this run belongs to
runNamestringName of the run
runTypestringType of run (JOB_RUN, WORKFLOW_RUN, SUBMIT_RUN)
attemptNumbernumberRetry attempt number (0 for initial attempt)
stateobjectRun state information
↳ lifeCycleStatestringLifecycle state (QUEUED, PENDING, RUNNING, TERMINATING, TERMINATED, SKIPPED, INTERNAL_ERROR, BLOCKED, WAITING_FOR_RETRY)
↳ resultStatestringResult state (SUCCESS, FAILED, TIMEDOUT, CANCELED, SUCCESS_WITH_FAILURES, UPSTREAM_FAILED, UPSTREAM_CANCELED, EXCLUDED)
↳ stateMessagestringDescriptive message for the current state
↳ userCancelledOrTimedoutbooleanWhether the run was cancelled by user or timed out
startTimenumberRun start timestamp (epoch ms)
endTimenumberRun end timestamp (epoch ms, 0 if still running)
setupDurationnumberCluster setup duration (ms)
executionDurationnumberExecution duration (ms)
cleanupDurationnumberCleanup duration (ms)
queueDurationnumberTime spent in queue before execution (ms)
runPageUrlstringURL to the run detail page in Databricks UI
creatorUserNamestringEmail of the user who triggered the run

Databricks Get Run Output

Get the output of a completed Databricks job run, including notebook results, error messages, and logs. For multi-task jobs, use the task run ID (not the parent run ID).

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
runIdnumberYesThe run ID to get output for. For multi-task jobs, use the task run ID

Output

ParameterTypeDescription
infostringAdditional output information
runJobOutputobjectRun Job task result
↳ run_idnumberChild run identifier
dbtOutputobjectdbt artifact download information
↳ artifacts_linkstringTemporary artifact URL
↳ artifacts_headersobjectHeaders required to fetch the artifact
sqlOutputobjectSQL query, alert, or dashboard task results
↳ query_outputobject
↳ alert_outputobject
↳ dashboard_outputobject
↳ widgetsarray
notebookOutputobjectNotebook task output (from dbutils.notebook.exit())
↳ resultstringValue passed to dbutils.notebook.exit() (max 5 MB)
↳ truncatedbooleanWhether the result was truncated
errorstringError message if the run failed or output is unavailable
errorTracestringError stack trace if available
logsstringLog output (last 5 MB) from spark_jar, spark_python, or python_wheel tasks
logsTruncatedbooleanWhether the log output was truncated

Databricks Repair Run

Rerun failed or selected tasks within an existing Databricks run.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
runIdnumberYesRun identifier
latestRepairIdnumberNoMost recent repair ID; required after the first repair of a run
rerunTasksjsonNoTask keys to repair; mutually exclusive with rerunAllFailedTasks
jobParametersjsonNoJob-level parameter overrides as a JSON object of string keys and values
rerunAllFailedTasksbooleanNoRepair every failed task instead of specifying task keys
rerunDependentTasksbooleanNoAlso rerun tasks downstream of the selected failed tasks
performanceTargetstringNoServerless performance mode: STANDARD or PERFORMANCE_OPTIMIZED
pipelineParamsjsonNoPipeline refresh settings, including full_refresh and selective table or flow lists

Output

ParameterTypeDescription
repairIdnumberIdentifier of the repair; pass it as latestRepairId on the next repair

Databricks Cancel Run

Cancel a running or pending Databricks job run. Cancellation is asynchronous; poll the run status to confirm termination.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
runIdnumberYesThe canonical identifier of the run to cancel

Output

ParameterTypeDescription
successbooleanWhether the cancel request was accepted

Databricks Cancel All Runs

Request cancellation of active runs of a job or queued runs in the workspace.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
jobIdnumberNoJob identifier; required unless allQueuedRuns is true
allQueuedRunsbooleanNoCancel queued runs; without a job ID this applies to the workspace

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Delete Run

Delete a completed Databricks job run.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
runIdnumberYesRun identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks List Clusters

List a page of clusters in a Databricks workspace including their state, configuration, and resource details.

Inputs and outputs

Input

ParameterTypeRequiredDescription
pageSizenumberNoResources per page (default 20)
pageTokenstringNoToken returned by the previous list request
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token

Output

ParameterTypeDescription
nextPageTokenstringToken for the next page
prevPageTokenstringToken for the previous page
clustersarrayList of clusters in the workspace
↳ policyIdstringCompute policy identifier
↳ dataSecurityModestringCluster access mode
↳ terminatedTimenumberCluster termination time in epoch milliseconds
↳ customTagsobjectCustom cluster tags
↳ terminationReasonobjectReason for termination (code, type, parameters)
↳ parametersobjectProvider-specific termination parameters
↳ clusterIdstringUnique cluster identifier
↳ clusterNamestringCluster display name
↳ statestringCurrent state (PENDING, RUNNING, RESTARTING, RESIZING, TERMINATING, TERMINATED, ERROR, UNKNOWN)
↳ stateMessagestringHuman-readable state description
↳ creatorUserNamestringEmail of the cluster creator
↳ sparkVersionstringSpark runtime version (e.g., 13.3.x-scala2.12)
↳ nodeTypeIdstringWorker node type identifier
↳ driverNodeTypeIdstringDriver node type identifier
↳ numWorkersnumberNumber of worker nodes (for fixed-size clusters)
↳ autoscaleobjectAutoscaling configuration (null for fixed-size clusters)
↳ minWorkersnumberMinimum number of workers
↳ maxWorkersnumberMaximum number of workers
↳ clusterSourcestringOrigin (API, UI, JOB, MODELS, PIPELINE, PIPELINE_MAINTENANCE, SQL)
↳ autoterminationMinutesnumberMinutes of inactivity before auto-termination (0 = disabled)
↳ startTimenumberCluster start timestamp (epoch ms)

Databricks Get Cluster

Get the state, configuration, and resource details of a single Databricks cluster by its cluster ID.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesThe ID of the cluster to retrieve

Output

ParameterTypeDescription
clusterobjectCluster detail
↳ policyIdstringCompute policy identifier
↳ dataSecurityModestringCluster access mode
↳ terminatedTimenumberCluster termination time in epoch milliseconds
↳ customTagsobjectCustom cluster tags
↳ terminationReasonobjectReason for termination (code, type, parameters)
↳ parametersobjectProvider-specific termination parameters
↳ clusterIdstringUnique cluster identifier
↳ clusterNamestringCluster display name
↳ statestringCurrent state (PENDING, RUNNING, RESTARTING, RESIZING, TERMINATING, TERMINATED, ERROR, UNKNOWN)
↳ stateMessagestringHuman-readable state description
↳ creatorUserNamestringEmail of the cluster creator
↳ sparkVersionstringSpark runtime version (e.g., 13.3.x-scala2.12)
↳ nodeTypeIdstringWorker node type identifier
↳ driverNodeTypeIdstringDriver node type identifier
↳ numWorkersnumberNumber of worker nodes (for fixed-size clusters)
↳ autoscaleobjectAutoscaling configuration (null for fixed-size clusters)
↳ minWorkersnumberMinimum number of workers
↳ maxWorkersnumberMaximum number of workers
↳ clusterSourcestringOrigin (API, UI, JOB, MODELS, PIPELINE, PIPELINE_MAINTENANCE, SQL)
↳ autoterminationMinutesnumberMinutes of inactivity before auto-termination (0 = disabled)
↳ startTimenumberCluster start timestamp (epoch ms)

Databricks Create Cluster

Create a compute cluster with runtime, sizing, policy, and cloud-specific settings.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
applyPolicyDefaultValuesbooleanNoFill unspecified settings from the compute policy defaults
cloneFromjsonNoClone source as {source_cluster_id, clone_source}
numWorkersnumberNoFixed worker count; use this or autoscale
autoscalejsonNoWorker range as {min_workers, max_workers}; use this or numWorkers
clusterNamestringNoDisplay name of the compute cluster
sparkVersionstringNoDatabricks runtime version, or omit when supplied by a compute policy
sparkConfjsonNoSpark configuration as a JSON map
awsAttributesjsonNoAWS compute configuration such as availability, zone_id, and instance_profile_arn
azureAttributesjsonNoAzure compute configuration such as availability and spot_bid_max_price
gcpAttributesjsonNoGCP compute configuration such as availability and zone_id
nodeTypeIdstringNoWorker node type identifier
driverNodeTypeIdstringNoDriver node type identifier
workerNodeTypeFlexibilityjsonNoAlternative worker node type selection settings
driverNodeTypeFlexibilityjsonNoAlternative driver node type selection settings
sshPublicKeysjsonNoSSH public keys to install on the cluster
customTagsjsonNoCustom cluster tags as a JSON map
clusterLogConfjsonNoCluster log destination in Databricks API format
sparkEnvVarsjsonNoEnvironment variables for the Spark processes as a JSON map
autoterminationMinutesnumberNoIdle minutes before termination; 0 disables automatic termination
enableElasticDiskbooleanNoAllow automatic expansion of attached storage
initScriptsjsonNoCluster initialization script locations in Databricks API format
dockerImagejsonNoCustom container image URL and optional basic_auth settings
instancePoolIdstringNoWorker instance pool identifier
singleUserNamestringNoAssigned user or service principal for dedicated access mode
policyIdstringNoCompute policy identifier
enableLocalDiskEncryptionbooleanNoEncrypt local cluster storage
driverInstancePoolIdstringNoDriver instance pool identifier
workloadTypejsonNoPermitted workload types in Databricks API format
dataSecurityModestringNoCluster access mode
runtimeEnginestringNoRuntime execution engine
kindstringNoCompute kind
useMlRuntimebooleanNoUse a machine learning runtime
isSingleNodebooleanNoCreate a single-node compute resource
remoteDiskThroughputnumberNoRemote disk throughput setting
totalInitialRemoteDiskSizenumberNoInitial remote disk size setting
dependencyModestringNoCluster dependency mode

Output

ParameterTypeDescription
clusterIdstringCompute cluster identifier

Databricks Edit Cluster

Replace a compute cluster configuration; a running cluster restarts to apply the changes.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier
applyPolicyDefaultValuesbooleanNoFill unspecified settings from the compute policy defaults
numWorkersnumberNoFixed worker count; use this or autoscale
autoscalejsonNoWorker range as {min_workers, max_workers}; use this or numWorkers
clusterNamestringNoDisplay name of the compute cluster
sparkVersionstringNoDatabricks runtime version, or omit when supplied by a compute policy
sparkConfjsonNoSpark configuration as a JSON map
awsAttributesjsonNoAWS compute configuration such as availability, zone_id, and instance_profile_arn
azureAttributesjsonNoAzure compute configuration such as availability and spot_bid_max_price
gcpAttributesjsonNoGCP compute configuration such as availability and zone_id
nodeTypeIdstringNoWorker node type identifier
driverNodeTypeIdstringNoDriver node type identifier
workerNodeTypeFlexibilityjsonNoAlternative worker node type selection settings
driverNodeTypeFlexibilityjsonNoAlternative driver node type selection settings
sshPublicKeysjsonNoSSH public keys to install on the cluster
customTagsjsonNoCustom cluster tags as a JSON map
clusterLogConfjsonNoCluster log destination in Databricks API format
sparkEnvVarsjsonNoEnvironment variables for the Spark processes as a JSON map
autoterminationMinutesnumberNoIdle minutes before termination; 0 disables automatic termination
enableElasticDiskbooleanNoAllow automatic expansion of attached storage
initScriptsjsonNoCluster initialization script locations in Databricks API format
dockerImagejsonNoCustom container image URL and optional basic_auth settings
instancePoolIdstringNoWorker instance pool identifier
singleUserNamestringNoAssigned user or service principal for dedicated access mode
policyIdstringNoCompute policy identifier
enableLocalDiskEncryptionbooleanNoEncrypt local cluster storage
driverInstancePoolIdstringNoDriver instance pool identifier
workloadTypejsonNoPermitted workload types in Databricks API format
dataSecurityModestringNoCluster access mode
runtimeEnginestringNoRuntime execution engine
kindstringNoCompute kind
useMlRuntimebooleanNoUse a machine learning runtime
isSingleNodebooleanNoCreate a single-node compute resource
remoteDiskThroughputnumberNoRemote disk throughput setting
totalInitialRemoteDiskSizenumberNoInitial remote disk size setting
dependencyModestringNoCluster dependency mode

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Start Cluster

Start a terminated all-purpose compute cluster.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Restart Cluster

Restart a running compute cluster.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier
restartUserstringNoUser requesting the cluster restart

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Resize Cluster

Change the fixed worker count or autoscaling range of a running cluster.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier
numWorkersnumberNoFixed worker count; use this or autoscale
autoscalejsonNoWorker range as {min_workers, max_workers}; use this or numWorkers

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Terminate Cluster

Terminate a compute cluster while retaining its configuration for a later restart.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Delete Cluster

Permanently delete a compute cluster and its configuration.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
clusterIdstringYesCompute cluster identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks List Warehouses

List a page of SQL warehouses in a Databricks workspace including their size, state, and type. Use this to discover the warehouse ID needed for Execute SQL.

Inputs and outputs

Input

ParameterTypeRequiredDescription
pageSizenumberNoResources per page (default 20)
pageTokenstringNoToken returned by the previous list request
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token

Output

ParameterTypeDescription
nextPageTokenstringToken for the next page
warehousesarrayList of SQL warehouses in the workspace
↳ jdbcUrlstringJDBC connection string
↳ odbcParamsobjectODBC connection settings
↳ hostnamestring
↳ pathstring
↳ protocolstring
↳ portnumber
↳ healthobjectWarehouse health and failure reason
↳ statusstring
↳ failure_reasonobject
↳ codestring
↳ typestring
↳ parametersobject
↳ tagsobjectWarehouse tags
↳ custom_tagsarray
↳ keystring
↳ valuestring
↳ enablePhotonbooleanWhether Photon is enabled
↳ spotInstancePolicystringSpot instance policy
↳ channelobjectWarehouse release channel
↳ namestring
↳ statementTimeoutnumberStatement timeout in seconds
↳ warehouseIdstringUnique warehouse identifier
↳ namestringWarehouse display name
↳ clusterSizestringWarehouse size (e.g., 2X-Small, Small, Medium, Large)
↳ statestringCurrent state (STARTING, RUNNING, STOPPING, STOPPED, DELETING, DELETED)
↳ warehouseTypestringWarehouse type (CLASSIC, PRO)
↳ creatorNamestringEmail of the warehouse creator
↳ autoStopMinutesnumberMinutes of inactivity before auto-stop (0 = disabled)
↳ numClustersnumberCurrent number of running clusters
↳ minNumClustersnumberMinimum cluster count for scaling
↳ maxNumClustersnumberMaximum cluster count for scaling
↳ numActiveSessionsnumberNumber of active sessions
↳ enableServerlessComputebooleanWhether serverless compute is enabled

Databricks Get Warehouse

Get the configuration, state, and scaling settings of a SQL warehouse.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier

Output

ParameterTypeDescription
warehouseobjectSQL warehouse configuration and state
↳ jdbcUrlstringJDBC connection string
↳ odbcParamsobjectODBC connection settings
↳ hostnamestring
↳ pathstring
↳ protocolstring
↳ portnumber
↳ healthobjectWarehouse health and failure reason
↳ statusstring
↳ failure_reasonobject
↳ codestring
↳ typestring
↳ parametersobject
↳ tagsobjectWarehouse tags
↳ custom_tagsarray
↳ keystring
↳ valuestring
↳ enablePhotonbooleanWhether Photon is enabled
↳ spotInstancePolicystringSpot instance policy
↳ channelobjectWarehouse release channel
↳ namestring
↳ statementTimeoutnumberStatement timeout in seconds
↳ warehouseIdstringUnique warehouse identifier
↳ namestringWarehouse display name
↳ clusterSizestringWarehouse size (e.g., 2X-Small, Small, Medium, Large)
↳ statestringCurrent state (STARTING, RUNNING, STOPPING, STOPPED, DELETING, DELETED)
↳ warehouseTypestringWarehouse type (CLASSIC, PRO)
↳ creatorNamestringEmail of the warehouse creator
↳ autoStopMinutesnumberMinutes of inactivity before auto-stop (0 = disabled)
↳ numClustersnumberCurrent number of running clusters
↳ minNumClustersnumberMinimum cluster count for scaling
↳ maxNumClustersnumberMaximum cluster count for scaling
↳ numActiveSessionsnumberNumber of active sessions
↳ enableServerlessComputebooleanWhether serverless compute is enabled

Databricks Create Warehouse

Create a SQL warehouse with sizing, autoscaling, and serverless settings.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
namestringNoDisplay name of the SQL warehouse
clusterSizestringNoSQL warehouse size, such as Small or Medium
minNumClustersnumberNoMinimum number of SQL warehouse clusters
maxNumClustersnumberNoMaximum number of SQL warehouse clusters
autoStopMinsnumberNoIdle minutes before stopping the warehouse; 0 disables automatic stopping
creatorNamestringNoWarehouse creator name
warehouseTagsjsonNoWarehouse tags as {custom_tags: [{key, value}]}
spotInstancePolicystringNoCost or reliability preference for spot instances
enablePhotonbooleanNoEnable Photon for SQL warehouse compute
channeljsonNoWarehouse release channel as {name: "CHANNEL_NAME_CURRENT"}
enableServerlessComputebooleanNoUse serverless SQL warehouse compute
warehouseTypestringNoWarehouse type; use PRO for serverless
statementTimeoutnumberNoWarehouse statement timeout in seconds

Output

ParameterTypeDescription
warehouseIdstringSQL warehouse identifier

Databricks Edit Warehouse

Update a SQL warehouse configuration.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier
namestringNoDisplay name of the SQL warehouse
clusterSizestringNoSQL warehouse size, such as Small or Medium
minNumClustersnumberNoMinimum number of SQL warehouse clusters
maxNumClustersnumberNoMaximum number of SQL warehouse clusters
autoStopMinsnumberNoIdle minutes before stopping the warehouse; 0 disables automatic stopping
creatorNamestringNoWarehouse creator name
warehouseTagsjsonNoWarehouse tags as {custom_tags: [{key, value}]}
spotInstancePolicystringNoCost or reliability preference for spot instances
enablePhotonbooleanNoEnable Photon for SQL warehouse compute
channeljsonNoWarehouse release channel as {name: "CHANNEL_NAME_CURRENT"}
enableServerlessComputebooleanNoUse serverless SQL warehouse compute
warehouseTypestringNoWarehouse type; use PRO for serverless
statementTimeoutnumberNoWarehouse statement timeout in seconds

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Start Warehouse

Start a stopped SQL warehouse.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Stop Warehouse

Stop a running SQL warehouse.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Delete Warehouse

Delete a SQL warehouse.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Genie List Spaces

List the Genie spaces (Genie agents) you can access. Use this to find the space ID needed to ask Genie a question.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
pageSizenumberNoMaximum number of spaces to return per page (default 20, max 100)
pageTokenstringNoPagination token from a previous response

Output

ParameterTypeDescription
spacesarrayGenie spaces
↳ etagstringSpace version for conditional updates
↳ spaceIdstringGenie space ID
↳ titlestringSpace title
↳ descriptionstringSpace description
↳ warehouseIdstringSQL warehouse the space runs queries on
↳ parentPathstringWorkspace folder containing the space
↳ createTimestringWhen the space was created (ISO 8601)
↳ updateTimestringWhen the space was last modified (ISO 8601)
nextPageTokenstringToken for the next page of results

Databricks Genie Get Space

Get a Genie space's title, description, and SQL warehouse, optionally with its full configuration export (tables, instructions, sample questions).

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
includeSerializedSpacebooleanNoInclude the space's serialized configuration export (requires CAN EDIT on the space)

Output

ParameterTypeDescription
etagstringSpace version for conditional updates
spaceIdstringGenie space ID
titlestringSpace title
descriptionstringSpace description
warehouseIdstringSQL warehouse the space runs queries on
parentPathstringWorkspace folder containing the space
createTimestringWhen the space was created (ISO 8601)
updateTimestringWhen the space was last modified (ISO 8601)
serializedSpacestringSerialized space configuration as a JSON string (data sources, instructions, sample questions)

Databricks Create Genie Space

Create a Genie space from its serialized configuration and a SQL warehouse.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
warehouseIdstringYesSQL warehouse identifier
parentPathstringNoParent workspace folder for the Genie space
serializedSpacestringYesSerialized Genie configuration JSON, including data_sources, instructions, config, and benchmarks; get an example with Get Genie Space
titlestringNoGenie space title
descriptionstringNoDescription of the Genie space

Output

ParameterTypeDescription
etagstringSpace version for conditional updates
spaceIdstringGenie space ID
titlestringSpace title
descriptionstringSpace description
warehouseIdstringSQL warehouse the space runs queries on
parentPathstringWorkspace folder containing the space
createTimestringWhen the space was created (ISO 8601)
updateTimestringWhen the space was last modified (ISO 8601)
serializedSpacestringSerialized Genie configuration (data_sources, instructions, config, benchmarks)

Databricks Update Genie Space

Update a Genie space, optionally protecting the change with its current ETag.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesGenie space identifier
serializedSpacestringNoSerialized Genie configuration JSON, including data_sources, instructions, config, and benchmarks; get an example with Get Genie Space
titlestringNoGenie space title
descriptionstringNoDescription of the Genie space; an empty string clears the description
warehouseIdstringNoSQL warehouse identifier
etagstringNoVersion from Get Genie Space; prevents overwriting concurrent changes
parentPathstringNoParent workspace folder for the Genie space

Output

ParameterTypeDescription
etagstringSpace version for conditional updates
spaceIdstringGenie space ID
titlestringSpace title
descriptionstringSpace description
warehouseIdstringSQL warehouse the space runs queries on
parentPathstringWorkspace folder containing the space
createTimestringWhen the space was created (ISO 8601)
updateTimestringWhen the space was last modified (ISO 8601)
serializedSpacestringSerialized Genie configuration (data_sources, instructions, config, benchmarks)

Databricks Trash Genie Space

Move a Genie space to the trash.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesGenie space identifier

Output

ParameterTypeDescription
successbooleanWhether Databricks accepted the request

Databricks Genie Ask

Ask a Databricks Genie space a question in natural language and wait for the answer. Starts a new conversation, or continues an existing one when a conversation ID is given. Returns the text answer, the SQL Genie generated, and the query result rows.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
contentstringYesThe question to ask Genie
conversationIdstringNoContinue this conversation so Genie uses its earlier messages as context. Omit to start a new conversation.
enableVisualizationbooleanNoAsk Genie to also generate a chart when one fits the answer

Output

ParameterTypeDescription
rowCountnumberNumber of rows the generated query returned
conversationIdstringGenie conversation ID
messageIdstringGenie message ID
statusstringMessage status (SUBMITTED, FETCHING_METADATA, FILTERING_CONTEXT, ASKING_AI, PENDING_WAREHOUSE, EXECUTING_QUERY, COMPLETED, FAILED, CANCELLED, QUERY_RESULT_EXPIRED)
contentstringThe question that was asked
answerstringGenie's text answer or summary
followUpQuestionstringClarifying question Genie asked instead of, or alongside, an answer
queryTitlestringTitle of the generated query
sqlstringSQL query Genie generated
queryDescriptionstringPlain-language description of the generated SQL
queryAttachmentIdstringAttachment ID of the generated query, used to fetch or re-run its result
statementIdstringSQL statement ID of the generated query
thoughtsarrayHow Genie interpreted the question and built the SQL (Public Preview)
↳ typestringThought category (THOUGHT_TYPE_DESCRIPTION, THOUGHT_TYPE_UNDERSTANDING, THOUGHT_TYPE_DATA_SOURCING, THOUGHT_TYPE_INSTRUCTIONS, THOUGHT_TYPE_STEPS)
↳ contentstringMarkdown-formatted thought
suggestedQuestionsarrayFollow-up questions suggested by Genie
visualizationsarrayCharts Genie generated (only when visualization was requested)
↳ attachmentIdstringVisualization attachment ID, used to download the chart
↳ titlestringChart title
↳ queryAttachmentIdstringQuery attachment the chart was built from
errorstringWhy Genie failed to answer
errorTypestringGenie error type
createdTimestampnumberWhen the message was created
totalChunksnumberNumber of result chunks
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
columnsarrayColumn schema of the query result
↳ namestringColumn name
↳ positionnumberColumn position (0-based)
↳ typeNamestringColumn type (STRING, INT, LONG, DOUBLE, BOOLEAN, TIMESTAMP, DATE, DECIMAL, etc.)
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null
totalRowsnumberTotal number of rows in the result
truncatedbooleanWhether the result set was truncated; null when no query result was retrieved

Databricks Genie Get Message

Get a Genie message's status and answer, including the generated SQL, visualizations, and suggested follow-up questions.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message

Output

ParameterTypeDescription
conversationIdstringGenie conversation ID
messageIdstringGenie message ID
statusstringMessage status (SUBMITTED, FETCHING_METADATA, FILTERING_CONTEXT, ASKING_AI, PENDING_WAREHOUSE, EXECUTING_QUERY, COMPLETED, FAILED, CANCELLED, QUERY_RESULT_EXPIRED)
contentstringThe question that was asked
answerstringGenie's text answer or summary
followUpQuestionstringClarifying question Genie asked instead of, or alongside, an answer
queryTitlestringTitle of the generated query
sqlstringSQL query Genie generated
queryDescriptionstringPlain-language description of the generated SQL
queryAttachmentIdstringAttachment ID of the generated query, used to fetch or re-run its result
statementIdstringSQL statement ID of the generated query
rowCountnumberNumber of rows the generated query returned
thoughtsarrayHow Genie interpreted the question and built the SQL (Public Preview)
↳ typestringThought category (THOUGHT_TYPE_DESCRIPTION, THOUGHT_TYPE_UNDERSTANDING, THOUGHT_TYPE_DATA_SOURCING, THOUGHT_TYPE_INSTRUCTIONS, THOUGHT_TYPE_STEPS)
↳ contentstringMarkdown-formatted thought
suggestedQuestionsarrayFollow-up questions suggested by Genie
visualizationsarrayCharts Genie generated (only when visualization was requested)
↳ attachmentIdstringVisualization attachment ID, used to download the chart
↳ titlestringChart title
↳ queryAttachmentIdstringQuery attachment the chart was built from
errorstringWhy Genie failed to answer
errorTypestringGenie error type
createdTimestampnumberWhen the message was created

Databricks Genie List Messages

List the messages in a Genie conversation with their answers and generated SQL, for example to replay a conversation history.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
pageSizenumberNoMaximum number of messages to return per page (default 20, max 100)
pageTokenstringNoPagination token from a previous response

Output

ParameterTypeDescription
messagesarrayMessages in the conversation
↳ conversationIdstringGenie conversation ID
↳ messageIdstringGenie message ID
↳ statusstringMessage status (SUBMITTED, FETCHING_METADATA, FILTERING_CONTEXT, ASKING_AI, PENDING_WAREHOUSE, EXECUTING_QUERY, COMPLETED, FAILED, CANCELLED, QUERY_RESULT_EXPIRED)
↳ contentstringThe question that was asked
↳ answerstringGenie's text answer or summary
↳ followUpQuestionstringClarifying question Genie asked instead of, or alongside, an answer
↳ queryTitlestringTitle of the generated query
↳ sqlstringSQL query Genie generated
↳ queryDescriptionstringPlain-language description of the generated SQL
↳ queryAttachmentIdstringAttachment ID of the generated query, used to fetch or re-run its result
↳ statementIdstringSQL statement ID of the generated query
↳ rowCountnumberNumber of rows the generated query returned
↳ thoughtsarrayHow Genie interpreted the question and built the SQL (Public Preview)
↳ typestringThought category (THOUGHT_TYPE_DESCRIPTION, THOUGHT_TYPE_UNDERSTANDING, THOUGHT_TYPE_DATA_SOURCING, THOUGHT_TYPE_INSTRUCTIONS, THOUGHT_TYPE_STEPS)
↳ contentstringMarkdown-formatted thought
↳ suggestedQuestionsarrayFollow-up questions suggested by Genie
↳ visualizationsarrayCharts Genie generated (only when visualization was requested)
↳ attachmentIdstringVisualization attachment ID, used to download the chart
↳ titlestringChart title
↳ queryAttachmentIdstringQuery attachment the chart was built from
↳ errorstringWhy Genie failed to answer
↳ errorTypestringGenie error type
↳ createdTimestampnumberWhen the message was created
nextPageTokenstringToken for the next page of results

Databricks Genie Get Query Result

Get the rows returned by the SQL query Genie generated for a message. Available once the message is EXECUTING_QUERY or COMPLETED.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message
attachmentIdstringYesThe query attachment ID (queryAttachmentId from Ask Genie or Get Genie Message)

Output

ParameterTypeDescription
totalChunksnumberNumber of result chunks
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
rowCountnumberNumber of rows in this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
columnsarrayColumn schema of the query result
↳ namestringColumn name
↳ positionnumberColumn position (0-based)
↳ typeNamestringColumn type (STRING, INT, LONG, DOUBLE, BOOLEAN, TIMESTAMP, DATE, DECIMAL, etc.)
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null
totalRowsnumberTotal number of rows in the result
truncatedbooleanWhether the result set was truncated
statementIdstringSQL statement ID of the query
statusstringStatement status (PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, CLOSED)

Databricks Genie Execute Query

Re-run the SQL query Genie generated for a message. Use this when the message's query result has expired (status QUERY_RESULT_EXPIRED). If the returned status is PENDING or RUNNING, fetch the rows afterwards with Get Genie Query Result.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message
attachmentIdstringYesThe query attachment ID (queryAttachmentId from Ask Genie or Get Genie Message)

Output

ParameterTypeDescription
totalChunksnumberNumber of result chunks
chunkIndexnumberIndex of this result chunk
rowOffsetnumberStarting row offset of this chunk
rowCountnumberNumber of rows in this chunk
nextChunkIndexnumberNext chunk to retrieve with Get Statement Chunk; null on the final chunk
nextChunkInternalLinkstringWorkspace-relative path to the next result chunk
columnsarrayColumn schema of the query result
↳ namestringColumn name
↳ positionnumberColumn position (0-based)
↳ typeNamestringColumn type (STRING, INT, LONG, DOUBLE, BOOLEAN, TIMESTAMP, DATE, DECIMAL, etc.)
dataarrayResult rows as a 2D array; each non-null value is a string and null values stay null
totalRowsnumberTotal number of rows in the result
truncatedbooleanWhether the result set was truncated
statementIdstringSQL statement ID of the query
statusstringStatement status (PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, CLOSED)

Databricks Genie Download Visualization

Download a chart Genie generated as a PNG image, for example to post it to Slack. The message must be COMPLETED and asked with visualization enabled. Not supported on Private Link workspaces.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message
attachmentIdstringYesThe visualization attachment ID (visualizations[].attachmentId)

Output

ParameterTypeDescription
filefileRendered chart image (PNG) stored in execution files

Databricks Genie Send Feedback

Rate a Genie answer as positive or negative, with an optional comment. Space authors use this feedback to improve the space's instructions.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message
ratingstringYesFeedback rating: POSITIVE, NEGATIVE, or NONE (clears a previous rating)
commentstringNoOptional feedback comment (max 5000 characters)

Output

ParameterTypeDescription
successbooleanWhether the feedback was recorded

Databricks Genie Delete Message

Delete a message from a Genie conversation.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation
messageIdstringYesThe ID of the Genie message

Output

ParameterTypeDescription
successbooleanWhether the message was deleted

Databricks Genie List Conversations

List conversations in a Genie space, including whether each is a chat-mode or agent-mode conversation. By default only your own conversations are returned.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
includeAllbooleanNoInclude every user's conversations in the space (requires CAN MANAGE on the space)
pageSizenumberNoMaximum number of conversations to return per page (default 20, max 100)
pageTokenstringNoPagination token from a previous response

Output

ParameterTypeDescription
conversationsarrayConversations in the Genie space
↳ conversationIdstringConversation ID
↳ titlestringConversation title
↳ createdTimestampnumberWhen the conversation was created
↳ agentTypestringConversation mode (GENIE_CONVERSATION_TYPE_CHAT or GENIE_CONVERSATION_TYPE_AGENT)
nextPageTokenstringToken for the next page of results

Databricks Genie Delete Conversation

Delete a Genie conversation you no longer need.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesThe ID of the Genie conversation to delete

Output

ParameterTypeDescription
successbooleanWhether the conversation was deleted

Databricks Genie Agent Ask

Ask a Genie agent a question in agent mode, where Genie plans multi-step research, runs several SQL queries, and writes a report with citations. Waits for the final report. Starts a new agent-mode conversation, or continues one when a conversation ID is given. Agent mode is in preview and must be enabled on the workspace.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space (the Genie agent ID)
contentstringYesThe question to ask the Genie agent
conversationIdstringNoContinue this agent-mode conversation. Omit to start a new conversation.
enableVisualizationbooleanNoAsk the agent to also generate charts where they fit

Output

ParameterTypeDescription
responseIdstringAgent response ID
conversationIdstringAgent-mode conversation ID; pass it back to ask a follow-up
statusstringResponse status (completed)
reportstringThe agent's final report, with citation links
queriesarraySQL queries the agent ran
↳ callIdstringFunction call ID
↳ titlestringQuery title
↳ sqlstringSQL the agent ran
itemsarrayEvery output item: reasoning, SQL calls, query results, and messages
↳ typestringItem type (message, reasoning, function_call, function_call_output)
↳ idstringItem ID
↳ statusstringItem status
↳ rolestringMessage role (user, assistant, or system) for message items
↳ textstringText of a message or reasoning item
↳ callIdstringPairs a function_call with its function_call_output
↳ namestringFunction name (execute_sql)
↳ argumentsstringFunction call arguments as a JSON string (title and sql)
↳ outputstringQuery result: the query title followed by a Markdown table
createdAtnumberWhen the response was created (Unix epoch seconds)
errorstringSystem error message the agent reported alongside its report

Databricks Genie Agent List Items

List an agent-mode conversation's full history in order: questions, reasoning, SQL calls, query results, and reports. Agent mode is in preview and must be enabled on the workspace.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space (the Genie agent ID)
conversationIdstringYesThe ID of the agent-mode conversation
limitnumberNoMaximum number of items to return (1-100, default 100)
afterstringNoPagination cursor: the lastId from a previous response
orderstringNoSort order: asc (oldest first, default) or desc (newest first)

Output

ParameterTypeDescription
itemsarrayConversation items in order; user questions are message items whose ID ends in _input
↳ typestringItem type (message, reasoning, function_call, function_call_output)
↳ idstringItem ID
↳ statusstringItem status
↳ rolestringMessage role (user, assistant, or system) for message items
↳ textstringText of a message or reasoning item
↳ callIdstringPairs a function_call with its function_call_output
↳ namestringFunction name (execute_sql)
↳ argumentsstringFunction call arguments as a JSON string (title and sql)
↳ outputstringQuery result: the query title followed by a Markdown table
firstIdstringID of the first item in the page
lastIdstringID of the last item in the page; pass it as After for the next page
hasMorebooleanWhether more items follow this page
statusstringStatus of the latest response in the conversation

Databricks Genie Agent Cancel

Cancel an in-flight Genie agent response using the response ID returned by the agent stream.

Inputs and outputs

Input

ParameterTypeRequiredDescription
hoststringYesDatabricks workspace host (e.g., dbc-abc123.cloud.databricks.com)
apiKeystringYesDatabricks Personal Access Token
spaceIdstringYesThe ID of the Genie space
conversationIdstringYesAgent conversation identifier
responseIdstringYesResponse ID from the response.created stream event

Output

ParameterTypeDescription
conversationIdstringGenie conversation ID
messageIdstringGenie message ID
statusstringMessage status (SUBMITTED, FETCHING_METADATA, FILTERING_CONTEXT, ASKING_AI, PENDING_WAREHOUSE, EXECUTING_QUERY, COMPLETED, FAILED, CANCELLED, QUERY_RESULT_EXPIRED)
contentstringThe question that was asked
answerstringGenie's text answer or summary
followUpQuestionstringClarifying question Genie asked instead of, or alongside, an answer
queryTitlestringTitle of the generated query
sqlstringSQL query Genie generated
queryDescriptionstringPlain-language description of the generated SQL
queryAttachmentIdstringAttachment ID of the generated query, used to fetch or re-run its result
statementIdstringSQL statement ID of the generated query
rowCountnumberNumber of rows the generated query returned
thoughtsarrayHow Genie interpreted the question and built the SQL (Public Preview)
↳ typestringThought category (THOUGHT_TYPE_DESCRIPTION, THOUGHT_TYPE_UNDERSTANDING, THOUGHT_TYPE_DATA_SOURCING, THOUGHT_TYPE_INSTRUCTIONS, THOUGHT_TYPE_STEPS)
↳ contentstringMarkdown-formatted thought
suggestedQuestionsarrayFollow-up questions suggested by Genie
visualizationsarrayCharts Genie generated (only when visualization was requested)
↳ attachmentIdstringVisualization attachment ID, used to download the chart
↳ titlestringChart title
↳ queryAttachmentIdstringQuery attachment the chart was built from
errorstringWhy Genie failed to answer
errorTypestringGenie error type
createdTimestampnumberWhen the message was created