Use a Klaviyo list or segment as an access control list
Locksmith allows you to use an already-existing Klaviyo list or segment to determine who gets access to your locked content.
The "Klaviyo member" key condition in Locksmith can check your Klaviyo lists or segments directly, to see if the current visitor should have access, and will grant or deny access accordingly.
To set this up, choose the key condition labelled "if the customer is a member of a Klaviyo list or segment":

API Key access
The first time you access one of our Klaviyo key conditions, you'll need to set up Locksmith's API access to your Klaviyo account. This is covered in detail in our guide here:
Your API key must grant "Full access" to the same four scopes in every case. "Segments" is especially important when using this key condition:
List
Profiles
Segments
Subscriptions

Setup
Take note of these settings:

List or segment
Use the Resource type dropdown to choose a list or segment. Select List to show Select a list..., then choose from the radio buttons for lists in your Klaviyo account.
Use Create a new list to open Klaviyo in a new tab and create a list:

Lists and segments function the same in practice. Locksmith asks Klaviyo whether the supplied email address is on the selected list or segment.
The key condition also states that it only checks existing list members. It does not add new subscribers.
"Only check signed-in customers" setting
This setting changes the behavior of this key condition significantly!

If left off (the default), Locksmith will prompt the visitor to enter their email address. The email address is the ONLY thing the customer needs to enter in this case, there is no requirement to sign in. This is what that would look like in your storefront:

If turned ON, customers will be required to sign in. Then, once signed in, Locksmith will either grant or deny access depending on if the customer is found in the configured list or segment. Here is an example of Locksmith's sign in page:

"Remember for signed-in customers" setting
Select Remember for signed-in customers to let Locksmith remember signed-in customers. It lets them in automatically next time.
Last updated
Was this helpful?