Connect your app to Klaviyo
You can connect your Lovable app to Klaviyo to manage customer profiles, lists, campaigns, and events. This lets your app read and update information in your Klaviyo account.
Anyone who wants their Lovable app to interact with an existing Klaviyo account for marketing or customer data needs this.
Do this, in order
- 1
Log in to your Klaviyo account as an Owner or Admin.
Only Owners or Admins can create the special key needed to connect Klaviyo to Lovable.
- 2
Go to your Klaviyo settings, then 'API keys'.
This is where you create and manage the keys that allow other services to access your Klaviyo account.
- 3
Create a new 'Private API Key', give it a name like 'Lovable integration', and choose the appropriate access level (Full, Read-only, or Custom with 'accounts:read' and other necessary permissions).
This key acts like a password for Lovable to securely access your Klaviyo data. The access level determines what your Lovable app can do in Klaviyo.
- 4
Copy the newly generated Private API Key immediately.
Klaviyo only shows this key once, so you must save it now for the next step.
- 5
In Lovable, go to 'Connectors' and select 'Klaviyo'.
This is where you set up new connections between Lovable and other services.
- 6
Click 'Add connection', then 'App + chat connector'.
This starts the process of creating a new shared connection for Klaviyo.
- 7
Give your connection a clear name in Lovable.
This name helps you identify this specific Klaviyo connection within your Lovable workspace.
- 8
Paste the Private API Key you copied from Klaviyo into the 'Private API key' field.
This provides Lovable with the credentials it needs to securely communicate with your Klaviyo account.
- 9
Decide who else in your Lovable workspace can use this connection and configure sharing settings.
By default, connections are private, but you can share them with team members or your entire workspace if needed.
- 10
Click 'Connect'.
Lovable will test the key to make sure it works and then save your connection, making Klaviyo available to your apps.
Paste this into your project
Use Klaviyo and build a signup form that subscribes an email address to our list after the visitor checks a consent box.
Words decoded
- Private API Key
- A secret code that acts like a password, allowing a specific program (like your Lovable app) to securely access and interact with your Klaviyo account without needing your regular login details.
- Scope
- The specific permissions or actions that a Private API Key is allowed to perform within your Klaviyo account. For example, 'read-only' means it can only view data, not change it.
- Webhook
- An automatic message sent from one app (like Klaviyo) to another (like your Lovable app) when a specific event happens, allowing real-time communication between them.
- App + chat connector
- A type of connection in Lovable that can be used both by you when building in the project chat and by your published apps, sharing the same setup.
Where people get stuck
- Using a public API key instead of a private API key.
- Not copying the private API key immediately after creation, as Klaviyo only shows it once.
- Creating a private API key with insufficient permissions (scopes) for what your Lovable app needs to do.
- Sharing your private API key publicly, as it functions like a password.
- Not having the correct administrative permissions in Klaviyo or Lovable to create the connection.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.