# Grow your subscriber lists with Klaviyo

Locksmith allows you to present your customers with a form to subscribe to a Klaviyo email list, which the customer must enter before they gain access to the locked content:

<div data-full-width="false"><figure><img src="https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2FugVzao8tmQUUgxwzsiwo%2FScreenshot%202025-07-31%20at%2011.55.24.png?alt=media&#x26;token=dd870d66-2be4-4a12-b500-65c20c33e1d0" alt=""><figcaption></figcaption></figure></div>

## Setup

To get started, create a new lock or navigate to the lock you'd like to use, then add the key condition labelled "if the customer subscribes to a Klaviyo list".

<figure><img src="https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2FEihNGlnzYDMG9WeJZEjT%2FScreenshot%202025-07-31%20at%2011.59.02.png?alt=media&#x26;token=76a715b1-88c6-4dfc-9340-487e3c3669f6" alt=""><figcaption><p>You can optionally filter the list by typing "klaviyo" as the filter.</p></figcaption></figure>

{% hint style="info" %}
You'll notice that Locksmith also supports *only* checking if a customer is already on a list (as opposed to subscribing them). This is a separate key condition, and it also supports checking segments! [We have a dedicated guide on that here](https://www.locksmith.guide/tutorials/more/use-a-klaviyo-list-or-segment-as-an-access-control-list).
{% endhint %}

You'll need to create a Klaviyo API key and give it to Locksmith (see below). Once you do that, you'll be presented with your Klaviyo lists, and you'll be able to choose which one to use like so:

<figure><img src="https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2FCjRXUyvgUSuzEQlfCsv1%2FScreenshot%202025-07-31%20at%2012.23.54.png?alt=media&#x26;token=cbef5834-d834-453b-af0d-675fdaff6ce1" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
As noted within the key condition setup, Klaviyo has their own policies regarding double opt in, and it is typically enabled by default. This setting is adjusted in your Klaviyo dashboard - it is not a setting that is controlled by Locksmith.
{% endhint %}

### Klaviyo API Access

The first time you select this, Locksmith will prompt you for a Klaviyo API key:

<figure><img src="https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2FSvdVDHtk8FhEQhY0JxSs%2FScreenshot%202024-04-03%20at%202.47.34%20PM.png?alt=media&#x26;token=5cd832ac-0768-47fb-a339-c073c8272eb9" alt=""><figcaption></figcaption></figure>

In your Klaviyo dashboard, go to Settings > Account > API Keys. You can also use the "from your Klaviyo account" link within Locksmith to go directly there:

<figure><img src="https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2FgKMRJNnMQwg3yZet0Crm%2FScreenshot%202023-11-03%20at%207.17.58%20PM.png?alt=media&#x26;token=73c5fd8a-4a76-4c47-bc92-dcbcb1fa05eb" alt=""><figcaption></figcaption></figure>

Click the  "Create Private API Key" button to create a key for Locksmith. You'll see the new key on the next screen.&#x20;

The scopes that Locksmith needs *full access* to from the Klaviyo API key are "List", "Profiles", "Segments", and "Subscriptions":

<figure><img src="https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2FuJhghrzmYRCsnXEqTANw%2FScreenshot%202025-10-27%20at%2012.52.02%E2%80%AFPM.png?alt=media&#x26;token=3038070b-b04d-44d8-ba4c-9126639f626c" alt=""><figcaption></figcaption></figure>

Copy the API key:

<figure><img src="https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2FzpSNZf1zlrYtLGO1LbyF%2FScreenshot%202023-11-03%20at%207.32.15%20PM.png?alt=media&#x26;token=d51d8f79-dcd3-44df-a1d1-a9e33286e665" alt=""><figcaption></figcaption></figure>

Then, head back to Locksmith, where you'll be able to paste in the key. Click "Continue", and Locksmith will present you with a list of Klaviyo lists, to which your new subscribers will be saved.

Once your Locksmith configuration is to your liking, hit the "Save" button. From here on out, new visitors to your locked resource will be required to subscribe before proceeding.

{% hint style="info" %}
**Note**: any customers who are already in your list will be seamlessly granted access when they enter their email address, and will not be added as a duplicate.
{% endhint %}

## Related articles:

{% content-ref url="customizing-the-email-list-signup-form" %}
[customizing-the-email-list-signup-form](https://www.locksmith.guide/tutorials/more/customizing-the-email-list-signup-form)
{% endcontent-ref %}

{% content-ref url="use-a-klaviyo-list-or-segment-as-an-access-control-list" %}
[use-a-klaviyo-list-or-segment-as-an-access-control-list](https://www.locksmith.guide/tutorials/more/use-a-klaviyo-list-or-segment-as-an-access-control-list)
{% endcontent-ref %}

{% content-ref url="../../keys/more/newsletter-keys" %}
[newsletter-keys](https://www.locksmith.guide/keys/more/newsletter-keys)
{% endcontent-ref %}
