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:
However, one IMPORTANT detail is, if you are using segments, you need to make sure that your API Key also grants permissions for segments, in addition to the other requirements. So - just to be clear - if you are using segments, you should have an API key that grants "Full access" to:
Lists
Profiles
Segments
Subscriptions
Setup
Take note of these settings:

List or segment
You can choose between a list or a segment. They function the same in practice, in that Locksmith asks Klaviyo directly whether or not the supplied email address is on the list or segment
"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:

Last updated
Was this helpful?