# Databricks

> Source: https://truto.one/docs/integration-guides/databricks/

Databricks connects with a personal access token and the URL of your workspace.

## Install the Databricks integration

Install Databricks from [Available integrations](https://app.truto.one/integrations/available/bf4333cb-39c2-4108-8fb0-9e27c6c85665) in each environment you connect accounts from.

## Create a personal access token

1. In your Databricks workspace, click your username in the top bar and select **User Settings**.
   ![User Settings](https://docs-assets.truto.one/databricks-details-1.png)
2. Click **Developer**. Next to **Access tokens**, click **Manage**.
   ![Manage access tokens](https://docs-assets.truto.one/databricks-details-2.png)
3. Click **Generate new token**.
   ![Generate new token](https://docs-assets.truto.one/databricks-details-3.png)
4. Optionally add a comment and change the lifetime from its 90-day default. Click **Generate**.
   ![Generate](https://docs-assets.truto.one/databricks-details-4.png)
5. Copy the token.

The **Base URL** is your workspace instance URL, as it appears in the browser.

![Workspace instance URL](https://docs-assets.truto.one/databricks-details-5.png)

## Connect a Databricks account

1. In [Integrated Accounts](https://app.truto.one/integrated-accounts), click **Connect Account**.
   ![Click Connect Account](https://docs-assets.truto.one/truto-connect-account.png)
2. Enter a **Tenant ID** (your customer's ID; Truto creates the tenant if it is new), or pick one under **Existing tenant (optional)**. Check the **Environment** and the **Region** (where Truto places the account; Western North America by default). To open the link straight on Databricks, pick it under **Advanced settings** → **Integration (optional)**. Click **Get connection link**.
   ![Get connection link](https://docs-assets.truto.one/truto-connect-account-modal.png)
3. Click the open-in-new-tab button, or click **Copy** and send the link to your customer so they connect their own Databricks account. The link works for 7 days, until an account is connected with it.
   ![Share connection link](https://docs-assets.truto.one/truto-connect-account-link.png)
4. Click **Get Started** if it shows, then select **Databricks**.
5. Fill in the form and click **Connect**:

   | Field | Required | What to enter |
   |---|---|---|
   | **API Key** | Yes | Your Databricks personal access token. |
   | **Base URL** | Yes | Your workspace instance URL, for example `https://acme.cloud.databricks.com`. |
6. Close the tab when you see **Connection successful**. The new account appears under **Integrated Accounts**. Click its Account ID to see its details and make API calls.
