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

# Klaviyo

> Connect Klaviyo to Adapt to analyze lists, campaigns, flows, and metrics

Klaviyo is a marketing automation platform for email and SMS. Connect it to
Adapt with a Klaviyo private API key.

## Set up credentials

**1. Open API Keys settings**

Sign in to Klaviyo, click your organization name in the lower left, go to
**Settings**, then open the **API Keys** tab.

> [!NOTE]
>
> You must have an Owner, Admin, or Manager role to create API keys.

**2. Create a private API key**

Under **Private API Keys**, click **Create Private API Key** and give the
key a name.

**3. Choose a scope**

Select a scope type: **Read-Only**, **Full Access**, or **Custom**. For
analysis, read access to the resources you need is enough. Scopes cannot be
changed after creation.

**4. Copy the key**

Click **Create** and copy the key (it starts with `pk_`).

> [!NOTE]
>
> The key is shown only once and cannot be viewed again. Store it securely.

## Connect to Adapt

**1. Open Integrations**

In Adapt, go to **Settings > Integrations**.

**2. Find Klaviyo**

Search for **Klaviyo** and select it from the catalog.

**3. Start the connection**

Click **Connect** to open the connection form.

**4. Add your credentials**

Enter the values you gathered above, then click **Add connection**:

| Secret Name | Value |
| - | - |
| `KLAVIYO_API_KEY` | Your Klaviyo private API key |

You can rename the connection and choose whether it is shared with your
organization or kept personal to you.

**5. Test the connection**

Ask Adapt to list your segments.

### Security

* Credentials are encrypted at rest with AES-256
* Scope the private key to the minimum access you need, such as read-only
* Use a different private API key for each application, and rotate keys periodically
* Never share your private API key or commit it to source control

## Capabilities

Analyze lists and segments, campaigns, flows, and metrics in Klaviyo from Adapt.

### Examples

Review lists and segments:

```
List my Klaviyo segments and how many profiles are in each.
```

Check campaign performance:

```
Show open and click rates for my last 5 Klaviyo email campaigns.
```

Inspect a flow:

```
Summarize the performance of my Klaviyo welcome flow this month.
```

Pull a metric:

```
What was my total Klaviyo "Placed Order" metric value last week?
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.