Login to your Affinity account, and select your profile > "Affinity Settings"
From the left toolbar, select "API" under Data and Integrations
Generate a new API key (if needed) and copy

Login to your Affinity account, and select your profile > "Affinity Settings"
From the left toolbar, select "API" under Data and Integrations
Generate a new API key (if needed) and copy