Once your users have connected their Klaviyo account, you can use the Paragon SDK to access the Klaviyo API on behalf of connected users.See the Klaviyo REST API documentation for their full API reference.Any Klaviyo API endpoints can be accessed with the Paragon SDK as shown in this example.
Copy
Ask AI
// You can find your project ID in the Overview tab of any Integration// Authenticate the userparagon.authenticate(<ProjectId>, <UserToken>);// Create Listawait paragon.request("klaviyo", "/v2/lists", { method: "POST", body: { "list_name": "your_list_name" }});// Query Listsawait paragon.request("klaviyo", "/v2/lists", { method: "GET"});
Your end-users will be required to enter their Klaviyo Private API Key as authentication when first connecting to your application.To create a Klaviyo Private API Key: