# Databricks Agent authentication

> Connect UiPath to the Databricks Agent connector using OAuth 2.0 Client Credentials or Personal Access Token authentication to enable AI-powered data workflows.

## Prerequisites

To create a connection to the Databricks Agent connector, you must provide the following credentials:

* For **OAuth 2.0 Client credentials**:
  + Workspace ID
  + Client ID
  + Client Secret
  + Scope
* For **Personal Access Token (PAT)**:
  + Workspace ID
  + Personal Access Token

We recommend using OAuth2.0. Use PAT only for development purposes in non-production environments.

## Retrieving your credentials

You can extract the workspace ID from the dashboard URL. For example, in the URL `https://dbc-b9458bba-0b7d.cloud.databricks.com/browse/folders/workspace?o=1634964661600153` the workspace ID is `dbc-b9458bba-0b7d`.

The Personal Access token (PAT) can be generated in Databricks.

## Add the Databricks Agent connection

1. Select Integration Service from the left rail.
2. From the **Connectors** list, select Databricks Agent. You can also use the search bar to find the connector.
3. Select **Connect to Databricks Agent**.
4. From the **Authentication Type** dropdown, select either **OAuth 2.0 Client credentials** or **Personal Access Token (PAT)**. By default, OAuth 2.0 Client credentials is selected.
5. Enter the required credentials.
6. Select **Connect**.
7. Your connection has been added.
