You need a Builder plan or higher to use connectors in your app.
What you can do
Turn your data and jobs into actions and insights in your app.Run notebooks and jobs
Trigger Databricks notebooks and data pipeline jobs from your app.
Execute SQL
Run SQL against your lakehouse and SQL warehouses, and surface the results in your app.
Build analytics dashboards
Turn Databricks queries into charts, tables, and dashboards your team can read.
Setting up OAuth in Databricks
You need a Databricks account admin to create a custom OAuth application before you connect Databricks to Base44.1
Get the Base44 callback URL
Get the Base44 callback URL from Registering callback URLs.
2
Create the Databricks OAuth application
Follow Databricks’ guide to creating a custom OAuth application.In Databricks, add that callback URL as a redirect URI and select All APIs.
3
Generate your credentials
Click Generate a client secret, then copy the Client ID and Client Secret. Databricks shows the Client Secret only once.
Connecting Databricks
Connect Databricks so your app can query your data.Before you begin:
- Databricks OAuth app: Have a Databricks account admin create a custom OAuth application and generate a client secret. Keep its Client ID and Client Secret. See Setting up OAuth in Databricks.
- Databricks Workspace URL: Have the URL of your own Databricks workspace ready. Copy it from your browser while you’re signed in to that workspace.
- Base44 workspace access: You must be a workspace owner or admin to register the connector in Base44.
- Databricks access: Each person who connects needs access to the Databricks workspace resources your app uses.
- Click Connectors in your workspace sidebar.
- Click Add connector.
- Search for Databricks and click it.
- Enter a Connector name.
- Enter the Client ID and Client Secret from your Databricks OAuth app.
- Keep the defaults under Scopes. Select
sqlif your app runs SQL. See Scopes and permissions. - Enter your own Databricks Workspace URL under Connection Configuration, for example
https://dbc-xxxxxxxx-xxxx.cloud.databricks.com. It ends in.databricks.com,.azuredatabricks.net,.cloud.databricks.us, or.cloud.databricks.mil. Copy it from your browser, without a path or query string, and don’t enterdatabricks.comoraccounts.cloud.databricks.com. - Click Add Connector.
- Open your app in the app editor.
- Ask the AI chat to add a Databricks feature.
- Authorize the account when prompted.
Scopes and permissions
Your Databricks permissions determine which data and workspace resources your app can use.1
Base44 adds
all-apis: Calls Databricks APIsoffline_access: Refreshes the connection without another sign-in
2
You configure
sql: Runs SQL queries on Databricks SQL warehouses. Select it under Scopes if your app runs SQL.- Leave Additional scopes empty unless your app needs more.
Access: Databricks limits the connection to the connected identity’s existing workspace permissions.
Using Databricks in a backend function
Once Databricks is connected, your backend functions can retrieve an access token and call Databricks APIs. Base44 handles the OAuth flow and credential storage.- App user connector
Connectors (developer docs)
Retrieve a connection, read its details, and call the service API from a backend function.
Troubleshooting
Check your workspace URL and Databricks permissions if the connector can’t connect or run queries.The workspace URL is rejected
The workspace URL is rejected
Your workspace host has to end in
.databricks.com, .azuredatabricks.net, .cloud.databricks.us, or .cloud.databricks.mil. Enter it on its own, with no path, for example adb-123456789.10.azuredatabricks.net.Queries fail with a permissions error
Queries fail with a permissions error
Each person who connects needs
CAN_USE on the SQL warehouse your app queries, or Databricks returns PERMISSION_DENIED. For an app user connection, Unity Catalog applies per person, so the same query can return different rows for different people, or TABLE_OR_VIEW_NOT_FOUND for someone without access to a table.A query fails without a warehouse ID
A query fails without a warehouse ID
Databricks has no default SQL warehouse, so every query needs a warehouse ID. Find it in Databricks under SQL → SQL Warehouses, then open the warehouse and copy its ID.