> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skypoint.ai/llms.txt
> Use this file to discover all available pages before exploring further.

#  

# Connecting to Klaviyo

# Import data

## Overview 

Klaviyo provides a marketing automation platform used primarily for email and SMS marketing. You can use skyData's built-in connector for importing data from Klaviyo.

This document will guide you through the process of connecting Klaviyo to skyData.

## Prerequisite 

You will need the following details to configure and import data using Klaviyo:

* [Klaviyo Account](https://www.klaviyo.com/login)
* API Key.

<Note>
  To create the API key, log in to your Klaviyo account. For more information, refer to the Setting up Klaviyo document.
</Note>

## Import Data using Klaviyo connector 

1. In the left pane, go to **Dataflow** > **Imports**. 

The Dataflow window appears.

<img src="https://mintcdn.com/skypoint/2X7jtvmKL6_-6PTU/doc_snippets/ShopifyDataflow.png?fit=max&auto=format&n=2X7jtvmKL6_-6PTU&q=85&s=f5dd2789fdd585ddc1a6fddf0a77a7f5" alt="Alt text" width="1911" height="346" data-path="doc_snippets/ShopifyDataflow.png" />

2. Click **New Dataflow** to create dataflow.

<img src="https://mintcdn.com/skypoint/2X7jtvmKL6_-6PTU/doc_snippets/ShopifyDataflowName.png?fit=max&auto=format&n=2X7jtvmKL6_-6PTU&q=85&s=1b73173e7f98ce5f13cea3e5d1bce8db" alt="Alt text" width="680" height="430" data-path="doc_snippets/ShopifyDataflowName.png" />

3. Enter a **Name** to identify your Dataflow. 

<Note>
  The name must start with a letter and can only contain letters and numbers, with no spaces between the characters.
</Note>

4. Click **Next**. 

## Add Klaviyo Connector 

Follow the below steps to add Klaviyo connector:

<img src="https://mintcdn.com/skypoint/FOw9XU4hMHhQDdYD/doc_snippets/KlaviyoChooseConnector.png?fit=max&auto=format&n=FOw9XU4hMHhQDdYD&q=85&s=a75ff0b133b47ae7a27b75c1d2fba38c" alt="Alt text" width="1347" height="633" data-path="doc_snippets/KlaviyoChooseConnector.png" />

1. In the **All** or **Marketing** categories tab, select the **Klaviyo** connector to start the configuration.

2. Also, you can use the **Search** function to find the **Klaviyo** connector.

<img src="https://mintcdn.com/skypoint/FOw9XU4hMHhQDdYD/doc_snippets/KlaviyoDataflowName.png?fit=max&auto=format&n=FOw9XU4hMHhQDdYD&q=85&s=321697fcb458dc58635f83a71ee095a1" alt="Alt text" width="525" height="593" data-path="doc_snippets/KlaviyoDataflowName.png" />

3. Enter the **Display Name** to identify your dataflow. 
4. In the **Description** box, you can enter an explanation of the connector.  
5. Click **Next**.

<img src="https://mintcdn.com/skypoint/nPdgNYOq-2eeVuRI/doc_snippets/ConnectToKlaviyo.png?fit=max&auto=format&n=nPdgNYOq-2eeVuRI&q=85&s=c8edfb7f094e583a07ab54eff9d07d62" alt="Alt text" width="1208" height="715" data-path="doc_snippets/ConnectToKlaviyo.png" />

## To configure Klaviyo

1. Enter **API Key** to configure with the Klaviyo connector.
2. Click **Connect**.

<img src="https://mintcdn.com/skypoint/FOw9XU4hMHhQDdYD/doc_snippets/KlaviyoTableDetails.png?fit=max&auto=format&n=FOw9XU4hMHhQDdYD&q=85&s=089b14d1a1612611fcc26fb61bf2014d" alt="Alt text" width="1611" height="1015" data-path="doc_snippets/KlaviyoTableDetails.png" />

3. You can enter the **Table Details** to process the data. 

<Note>
  In the **Table Details** column, all fields are selected by default. You can select    only those fields that you want to import and process the data.
</Note>

| Item                      | Description                                                  |
| :------------------------ | :----------------------------------------------------------- |
| Purpose                   | Option to assign a purpose (Data, Metadata) for each table.  |
| <center>Data</center>     | Loads customer data.                                         |
| <center>Metadata</center> | Loads Metadata.                                              |
| Name                      | Displays the name of the file that you imported.             |
| Type                      | Displays the imported data type.                             |

4. Click **Save** to apply the changes. 

## Run, edit, and delete the imported data 

After saving the connection, the Klaviyo connector appears on the Dataflow page. Also, you can see the list of created entities in the [Databases](https://skypointcdpdocs.z22.web.core.windows.net/docs/entities.html) section.

<img src="https://mintcdn.com/skypoint/FOw9XU4hMHhQDdYD/doc_snippets/KlaviyoOutput.png?fit=max&auto=format&n=FOw9XU4hMHhQDdYD&q=85&s=86ff99dd16cd0c5e6fa82d67aaf3f812" alt="Alt text" width="2212" height="633" data-path="doc_snippets/KlaviyoOutput.png" />

| Item          | Description                                                                      |
| :------------ | :------------------------------------------------------------------------------- |
| Name          | Displays the name of the Dataflow.                                               |
| Type          | Displays connector type symbol.                                                  |
| Status        | Indicates whether the data is imported successfully.                             |
| Tables Count  | Displays the number of entities.                                                 |
| Created Date  | Displays date of creation.                                                       |
| Updated Date  | Displays last modified date.                                                     |
| Last Refresh  | Displays the latest refresh date, which updates each time you refresh the data.  |
| Group by      | Option to view the items in a specific Group (For example, name, type, status).  |

1. Click on the connector on the Imports page that you want to modify.
2. Select the horizontal ellipsis in the **Actions** column and do the following: 

| If you want to                        | Then                                                                                               |
| :------------------------------------ | :------------------------------------------------------------------------------------------------- |
| Modify the Dataflow                   | Select **Edit** and modify the Dataflow. Click **Save** to apply your changes.                     |
| Execute the Dataflow                  | Select **Run**.                                                                                    |
| Bring the data to its previous state  | Select **Rollback**.                                                                               |
| Delete the Dataflow                   | Select **Remove** and then click the **Delete** button. All tables in the data source get deleted. |
| See the run history of the Dataflow   | Select **Run History**.                                                                            |

<br />

<Note>
  You can view the error message for data import failures in the Dataflow under **Run History** > **Description**.
</Note>

# Setup guide

## Overview

This document will help you gather all credentials for connecting Klaviyo with skyData.

## Prerequisite

You should have access to an active [Klaviyo](https://www.klaviyo.com/login?next=/account) account. To manage the API keys, you must have an Owner, Admin, or Manager role on the account.

## To create an API key

Follow the below steps to create a Private API key:

1. Log in to your **Klaviyo** account.
2. Click **Account > Settings**.
3. Select **API Keys** tab.

<img src="https://mintcdn.com/skypoint/FOw9XU4hMHhQDdYD/doc_snippets/Klaviyo_PrivateAPIkey.png?fit=max&auto=format&n=FOw9XU4hMHhQDdYD&q=85&s=c2d2f6ae208b4f859eb70b6b44258e4d" alt="Alt text" width="1530" height="783" data-path="doc_snippets/Klaviyo_PrivateAPIkey.png" />

4. Click **Create Private API Key**.
5. Name the API key.
6. Choose the **Scope** you want to give the API key.

<img src="https://mintcdn.com/skypoint/FOw9XU4hMHhQDdYD/doc_snippets/Klaviyo_PrivateAPIkeyScope.png?fit=max&auto=format&n=FOw9XU4hMHhQDdYD&q=85&s=10b9712f1f3aeb634159de91d93856dd" alt="Alt text" width="1380" height="845" data-path="doc_snippets/Klaviyo_PrivateAPIkeyScope.png" />

| Scope           | Description                                                                      |
| :-------------- | :------------------------------------------------------------------------------- |
| Read-only Key   | Limits third party access to read-only for every API scope.                      |
| Full Access Key | Allows third parties to create, delete, or make changes for every API scope.     |
| Custom Key      | Allows you to decide how much access for each API scope to give the third party. |

7. Click **Create**.

<Note>
  You can select the scope to control third-party access to information when sharing the private API key.
</Note>

<br />

## Next step 

After completing the data import, start the [Master Data Management (MDM) - Stitch process](stitch.md) to develop a unified view of your customers.

# ERD

<a href="/doc_snippets/klaviyo_erd.png" target="_blank">
  <img alt="BOULEVARD ERD" src="https://mintcdn.com/skypoint/HNIeMYRyI8pJ-92m/doc_snippets/klaviyo_erd.png?fit=max&auto=format&n=HNIeMYRyI8pJ-92m&q=85&s=662026b00286695e91145b6cf14ff3e4" width="5216" height="3650" data-path="doc_snippets/klaviyo_erd.png" />
</a>
