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

# Affinity (v2) - How do I link my account?

# Overview

To authenticate with Affinity (v2), you will need:

1. **API Key** - A key that grants Nango permission to interact with Affinity’s v2 API resources and services.

This guide will walk you through generating your API Key within Affinity.

### Prerequisites:

* You must have a registered Affinity account with permission to generate an **API Key**.

### Instructions:

#### Step 1: Generating Your API Key

1. Log in to your [Affinity dashboard](https://affinity.co/auth/signin) and click **Settings** in the left sidebar.

<img src="https://mintcdn.com/nango/9GoOsrSI6WExiFDY/integrations/all/affinity/settings.png?fit=max&auto=format&n=9GoOsrSI6WExiFDY&q=85&s=6410cd9fa77920d472c530a8ed28a1cc" width="1920" height="743" data-path="integrations/all/affinity/settings.png" />

2. Click **API**, then click the **Generate New API Key** button.

<img src="https://mintcdn.com/nango/OdHQVah61JOdzA00/integrations/all/affinity/api_keys.png?fit=max&auto=format&n=OdHQVah61JOdzA00&q=85&s=4be617b8123fcf3358042af65d161c51" width="1912" height="794" data-path="integrations/all/affinity/api_keys.png" />

#### Step 2: Enter credentials in the Connect UI

Once you have the **API Key**:

1. Open the form where you need to authenticate with Affinity (v2).
2. Enter your **API Key** in its designated field.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango/OdHQVah61JOdzA00/integrations/all/affinity-v2/form.png?fit=max&auto=format&n=OdHQVah61JOdzA00&q=85&s=db5cc0ce7dfefe71ea9dfda976471db6" style={{maxWidth: "450px" }} width="499" height="698" data-path="integrations/all/affinity-v2/form.png" />

You are now connected to Affinity (v2).
