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:

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".

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:

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

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

The API keys page lists each private key with an "Access Level" column. Use this to see an existing key's access level without recreating it.
Creating a private API key requires Owner or Admin access to the Klaviyo account.
Click the "Create Private API Key" button and name the key. "Select Access Level" offers "Custom Key", "Read-Only Key", and "Full Access Key". For Locksmith, choose one of the following:
Custom Key — the API Scopes table appears on the right. It has "No Access", "Read Access", and "Read/Write Access" columns. The radio button in the "Read/Write Access" column is labelled "Full Access". With "Custom Key" selected, every scope starts at "No Access". Set each required scope to "Full Access": "List", "Profiles", "Segments", and "Subscriptions". Missing any one of these scopes can prevent the integration from working.
Full Access Key — grants full access to every scope in one click. Use this as a simpler alternative to setting the four required scopes individually.

Copy the API key:

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.
Replacing your Klaviyo API key
On the Settings page in the Locksmith app, find Klaviyo and click Change API key. Paste the new key and click Save. Every Klaviyo key condition keeps the list or segment it already uses.
If you disconnect Klaviyo instead (Disconnect Klaviyo, on the same card), the Settings page shows a field to connect again with a new key and Connect. A lock's Klaviyo key condition also asks for a key while none is connected.
Troubleshooting
If visitors enter an email address on a locked page and see "Something went wrong, please refresh and try again," check the connected private API key. This can happen when the lock is configured correctly and the list is selected in Locksmith, but Klaviyo rejects the subscription request because the key lacks required scopes. Klaviyo returns a permission error, and Locksmith cannot complete the subscription.
Create a new private API key with Full Access to "List", "Profiles", "Segments", and "Subscriptions". Then connect the new key in Locksmith.
Related articles:
Customizing the email list signup formUse a Klaviyo list or segment as an access control listNewsletter keysLast updated
Was this helpful?