# Connecting data sources in Windsor.ai

> How to authorize and connect data sources, manage accounts, and re-authenticate when a connection breaks.

## How authorization works

Windsor.ai connects to data sources in two ways depending on the platform:

- **OAuth** — you log in to the source platform (for example, Google, Facebook, or LinkedIn) and grant Windsor read access. Windsor stores a token; no password is shared.
- **API key or credentials** — you paste an API key, client ID, or service account credentials directly into Windsor.

Most major advertising and analytics sources use OAuth. Databases, warehouses, and some marketing tools use API keys or service accounts.

## Connecting a source

1. Go to [onboard.windsor.ai](https://onboard.windsor.ai/).
2. Find the source in the connector list.
3. Click the tile, then click **Connect**.
4. Follow the authorization flow for that platform.
5. After authorization, select the account or property you want to use. Some sources (Google Ads, Facebook Ads) allow you to select multiple accounts in one connection.

## Managing multiple accounts

For sources that support it, you can connect multiple accounts under a single Windsor connection. Each account appears as a selectable item in the query builder. If you need accounts from different logins (for example, two separate Google accounts), you can add additional connections for the same source.

To invite a client or external user to connect their own account without sharing credentials, use the [Authorize via Link](https://windsor.ai/documentation/troubleshooting/authorize-via-link-in-windsor.md) feature.

## Viewing and removing connections

You can view all your connected sources and remove any of them from the data source management screen. Removing a source does not delete historical data already loaded into destinations, but any active destination tasks using that source will fail on the next refresh.

See [Managing data sources in Windsor.ai](https://windsor.ai/documentation/troubleshooting/managing-data-sources-in-windsor-ai.md) for step-by-step instructions.

## Re-authenticating a broken connection

OAuth tokens expire or get revoked when you change your password, revoke app access, or the source platform rotates tokens. When this happens Windsor marks the source with an authentication error.

To fix it:

1. Find the source in your connection list.
2. Click **Reconnect** or **Re-authorize**.
3. Complete the authorization flow again.

For more detail on specific error types, see [How to fix authentication errors](https://windsor.ai/documentation/troubleshooting/how-to-fix-authentication-errors.md).

For Facebook/Meta specifically, see [Resetting or removing Facebook connector authentication](https://windsor.ai/documentation/troubleshooting/resetting-or-removing-facebook-meta-connector-authentication.md).

## Tips for avoiding authentication issues

- **Use a dedicated account**: connect sources with a service or team account rather than a personal login so the token doesn't break when someone changes their password.
- **Avoid multiple Google logins**: Windsor can have issues when you are signed into more than one Google account in the same browser session. Use separate Chrome profiles for separate accounts.
- **Grant all requested scopes**: if you skip a permission during OAuth, Windsor may connect but fail to retrieve certain data. Reconnect and accept all requested scopes.
