# Affinity

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

Affinity connects with an API key.

:::callout{type="info"}
- Affinity API access needs the Enterprise plan and an admin user.
:::

## Install the Affinity integration

Install Affinity from [Available integrations](https://app.truto.one/integrations/available/40d152f2-c3e0-49ab-b1f6-dfe317bd8317) in each environment you connect accounts from.

## Generate an API key

1. Sign in to Affinity and click **Settings** on the left.
   ![Click Settings](https://docs-assets.truto.one/affinity-details-1.png)
2. Open the **API** tab and click **Generate an API key**.
   ![Generate an API key](https://docs-assets.truto.one/affinity-details-2.png)
3. Copy the key.

## Connect an Affinity account

1. Click **Connect Account**.
   ![Click Connect Account](https://docs-assets.truto.one/truto-connect-account.png)
2. Enter a Tenant ID. This can be any ID you choose. Click **Get connection link**.
   ![Get connection link](https://docs-assets.truto.one/truto-connect-account-modal.png)
3. Open the generated link. You can also share it with your customer so they connect their own Affinity account.
   ![Share connection link](https://docs-assets.truto.one/truto-connect-account-link.png)
4. Select **Affinity**.
5. Fill in the form and click **Connect**:

   | Field | Required | What to enter |
   |---|---|---|
   | **API Key** | Yes | Your Affinity API key. |
6. Close the tab when you see the connection successful message. The new account appears under **Integrated Accounts**. Click its Account ID to see its details and make API calls.
