> ## Documentation Index
> Fetch the complete documentation index at: https://docs.attio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Data connectors

> Query your workspace data from external tools over the PostgreSQL protocol

Data connectors let you query your Attio data directly from the tools your team already uses for analysis, without ETL or exporting data.
We currently support the PostgreSQL protocol, so you can generate read-only credentials and connect from any tool that can talk to a PostgreSQL database.
See [Available data](/sql/available-data) to find the tables you can query and [Querying with SQL](/sql/guides/querying-with-sql) for worked examples.

## Creating a data connector

<Note>
  Only admins can access the **Data connectors** tab in workspace settings, and each workspace is limited to one data connector.
</Note>

1. Click your workspace name in the upper-left of your account and select **Workspace settings**.
2. Select **Data** in the left-hand sidebar, then open the **Data connectors** tab.
3. Click **New data connector**, choose the connection type, and give it a name.

<img className="dark:hidden" width="720" height="440" noZoom src="https://mintcdn.com/attio/r1IUEUBKs9T65mH5/images/create-data-connector.png?fit=max&auto=format&n=r1IUEUBKs9T65mH5&q=85&s=e8a5aa844467cf818cc249edf69a6f08" data-path="images/create-data-connector.png" />

<img className="hidden dark:block" width="720" height="440" noZoom src="https://mintcdn.com/attio/r1IUEUBKs9T65mH5/images/create-data-connector-dark.png?fit=max&auto=format&n=r1IUEUBKs9T65mH5&q=85&s=6232656afe17e05db4e50ba5adf6ff3a" data-path="images/create-data-connector-dark.png" />

## Disabling and regenerating credentials

To disable a data connector without deleting its credentials, click the **…** menu on a data connector in the settings page and select **Disable**. Any queries made with those credentials will fail until you re-enable the data connector from the same menu.

If your credentials have been exposed, click **Regenerate credentials** in the **…** menu to revoke the old credentials and generate a new set in a single step.

Disabled data connectors still count towards your workspace's limit.

<img className="dark:hidden" width="720" height="440" noZoom src="https://mintcdn.com/attio/r1IUEUBKs9T65mH5/images/data-connector-actions.png?fit=max&auto=format&n=r1IUEUBKs9T65mH5&q=85&s=12b5b78b160f69babe5946caf060f959" data-path="images/data-connector-actions.png" />

<img className="hidden dark:block" width="720" height="440" noZoom src="https://mintcdn.com/attio/r1IUEUBKs9T65mH5/images/data-connector-actions-dark.png?fit=max&auto=format&n=r1IUEUBKs9T65mH5&q=85&s=8d6f74dbfa43d6d71f746df949754822" data-path="images/data-connector-actions-dark.png" />

## Compatibility

Although we support the PostgreSQL protocol for connections and SQL syntax for queries, not every native PostgreSQL function is available, which can cause incompatibility with some systems.
