a

How to Connect Klaviyo to Knowi and Build a Marketing Analytics Dashboard

Share on facebook
Share on linkedin
Share on twitter
Share on email

Knowi has a native Klaviyo integration that connects with your private API key. Once connected, you can pull profiles, events, campaigns, lists, flows, and metrics from your Klaviyo account and build dashboards directly in Knowi without any manual exports.

Quick Summary (TL;DR)

  • Knowi connects natively to Klaviyo using a private API key starting with pk_. Keys do not expire unless manually revoked.
  • Seven pre-built collections are available: Profiles, Events, Lists, Campaigns, Metrics, Flows, and Custom Endpoint.
  • Required permissions: read access to the scopes you want to pull (Profiles, Events, Lists, Campaigns, Metrics, Flows).
  • Klaviyo API responses use a JSON:API nested format. Knowi uses Cloud9QL’s expand() function to flatten responses into tabular rows.
  • Rate limits vary by endpoint: Profiles (75/s burst, 700/min steady), Events (350/s burst), Campaigns (10/s burst, 150/min steady). Knowi handles retries automatically.
  • Klaviyo data can be joined natively with Shopify, PostgreSQL, Google Analytics, and 30-plus other sources in Knowi.

Table of Contents

How to Connect Klaviyo to Knowi

The Klaviyo connector is available natively in Knowi. You connect using a private API key generated in your Klaviyo account settings.

  1. In Klaviyo, go to Account Settings > API Keys and click Create Private API Key.
  2. Grant read access to the scopes you want to pull: Profiles, Events, Lists, Campaigns, Metrics, Flows.
  3. Copy the key (starts with pk_).
  4. In Knowi, go to Queries and select New Data Source.
  5. Search for Klaviyo in the datasource search.
  6. Give your datasource a unique name and paste in your private API key.
  7. Click Save. Your Klaviyo datasource is ready to query.

What Data Can You Pull from Klaviyo?

Once connected, select a collection from the Query Builder, apply filters, and run. All collections support Knowi’s Cloud9QL transformations for flattening and filtering the response.

CollectionWhat It ReturnsFilters and Options
ProfilesAll contacts: email, first name, last name, phone number, created date, updated date, custom propertiesFilter by email (equals(email,"user@example.com")), created date (greater-than(created,2024-01-01T00:00:00Z)). Sort by created, updated, or email.
EventsActivity data: opens, clicks, purchases, and custom events with metric ID, profile ID, and datetimeFilter by metric_id, profile_id, or datetime. Sort by datetime or timestamp.
ListsAll lists in your Klaviyo accountDefault sort: name (ascending)
CampaignsCampaign data across email, SMS, and mobile pushChannel (required): email, SMS, or mobile push. Optional filter by status (equals(status,"Sent")).
MetricsAvailable event types and metric IDs in your accountOptional integration filter
FlowsAutomated workflows: welcome series, abandoned cart, post-purchase, and othersOptional filter by status (live, draft, manual). Sort options available.
Custom EndpointAny Klaviyo API resource not in the pre-built listResource path (e.g., segments, tags, catalogs, templates, coupons)

Technical Details

Rate Limits

  • Profiles: 75 requests/second burst, 700 requests/minute steady
  • Events: 350 requests/second burst, 3,500 requests/minute steady
  • Campaigns: 10 requests/second burst, 150 requests/minute steady

Response Format and Cloud9QL

Klaviyo returns data in JSON:API format with nested structure. Use Cloud9QL’s expand() function to flatten responses into tabular rows. Common transformations:

  • Flatten: select data; select expand(data);
  • Project fields: select id, attributes.email from data;
  • Filter by date: select * where attributes.created >= '2024-01-01';
  • Aggregate: select attributes.status, count(*) group by attributes.status;

Pagination

Klaviyo uses cursor-based pagination via links.next URLs. Knowi handles pagination automatically so all records are fetched without manual configuration.

How to Build a Klaviyo Dashboard in Knowi

  • Select a collection in the Query Builder. Campaigns or Events are common starting points for email performance analysis.
  • Apply filters as needed (status, channel, date range).
  • Preview your data, give your dataset a name, and run.
  • From the Query Overview page, use the AI dashboard builder to generate visualizations automatically.
  • Example dashboard from the integration video: attributes count by category, daily count of attributes created, daily count of attributes updated.
  • Edit widget types (line chart, stacked area chart) and rearrange the layout after the AI generates the initial dashboard.
  • Add the AI Recommendations widget to surface insights and action items automatically.

Watch Video Walkthrough

Frequently Asked Questions

How does Knowi authenticate with Klaviyo?

Knowi uses a private API key starting with pk_. Create it in Klaviyo under Account Settings > API Keys with read access to the scopes you need. Keys do not expire unless you manually revoke them.

What Klaviyo data can I pull into Knowi?

Seven collections: Profiles (contacts and custom properties), Events (opens, clicks, purchases, custom events), Lists, Campaigns (email/SMS/push), Metrics (event types and IDs), Flows (automated workflows), and Custom Endpoint for any other Klaviyo resource.

How do I pull only sent campaigns from Klaviyo?

In the Campaigns collection, set the Channel to email (or SMS/mobile push) and add a filter: equals(status,"Sent"). This returns only campaigns with a Sent status.

Why does Klaviyo data come back nested in Knowi?

Klaviyo uses JSON:API format which nests data under an attributes key. Use Cloud9QL’s select expand(data) transformation to flatten it into rows, then reference fields with dot notation: attributes.emailattributes.created.

Can I join Klaviyo data with Shopify or other sources in Knowi?

Yes. Knowi supports cross-source joins natively. You can combine Klaviyo campaign or event data with Shopify orders, PostgreSQL, Google Analytics, and 30-plus other sources directly in a query without a data warehouse.

What permissions does my Klaviyo API key need?

Read access to the scopes matching the collections you want to pull: Profiles, Events, Lists, Campaigns, Metrics, and Flows. You do not need write permissions.

Ready to connect your Klaviyo account to Knowi? Read the Klaviyo connector documentation to get started, or schedule a demo to see it in action with your marketing data.

Sanskriti Garg

Sanskriti Garg

Sanskriti Garg is the Marketing Manager at Knowi, where she leads all marketing initiatives for the company. She oversees positioning, messaging, go-to-market strategy, and campaigns that help Knowi reach businesses looking to unify, analyze, and act on their data with powerful AI analytics. Sanskriti brings over 10+ years of marketing experience, with a strong consumer-focused mindset and storytelling skills. Her expertise spans marketing, demand generation, AI, and analytics, and she’s passionate about making advanced analytics accessible and impactful for organizations of all sizes.

Want to See Knowi in Action?

Connect your databases, run cross-source joins, and ask questions in plain English. No warehouse required.

See Knowi in action
Connect your databases, query across sources, and run AI on-premises. No warehouse required.
Book a Demo