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

# Klaviyo

> Email, SMS and push campaign and flow performance (opens, clicks, conversions, revenue), metrics and their aggregates from a Klaviyo account.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/klaviyo.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=24a316431446dda2f5b89859ed3d3f74)

[Web Catalog · Analytics](https://docs.webrouter.net/data-apis.md?category=analytics)

Needs&#x20;

`KLAVIYO_API_KEY`

Endpoints

6

Auth

Key in header

[Vendor docs](https://developers.klaviyo.com/en/reference/api_overview)

&#x20;·&#x20;

[Pricing](https://www.klaviyo.com/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `KLAVIYO_API_KEY` | required | a Klaviyo private API key (Settings > API keys) with read scopes for campaigns, flows and metrics |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every call carries a revision header (an API version date); this entry pins 2026-10-15.
* Bodies are JSON:API: \{"data": \{"type": ..., "attributes": \{...}}}. List filters are strings such as equals(status,'live') or greater-than(created,2026-01-01T00:00:00Z); paging follows links.next or page\[cursor].
* Reporting endpoints (campaign and flow values) are rate limited hard: 1 per second, 2 per minute, 225 per day. They match the numbers in Klaviyo's UI; metric aggregates are for raw event counts.
* Reports need a conversion\_metric\_id: find the Placed Order (or other conversion) metric's id with klaviyo.metrics.list.

## Endpoints

POST

Campaign performance report

Opens, clicks, deliveries, conversions and revenue per campaign (and message, channel) over a timeframe.

[Open](#klaviyo-campaigns-report)

POST

Flow performance report

Opens, clicks, deliveries, conversions and revenue per flow (and message, channel) over a timeframe.

[Open](#klaviyo-flows-report)

GET

List campaigns

Campaigns with name, status, send settings and optionally their messages, audiences and tags.

[Open](#klaviyo-campaigns-list)

GET

List flows

Automated flows with name, status, trigger type and dates.

[Open](#klaviyo-flows-list)

GET

List metrics

Event metrics in the account (Placed Order, Opened Email, ...) with their ids and integrations.

[Open](#klaviyo-metrics-list)

POST

Aggregate a metric over time

Counts, sums or unique counts of one metric's events per day, hour, week or month, optionally grouped by dimensions like \$flow or Campaign Name.

[Open](#klaviyo-metrics-aggregate)

### Campaign performance report

POST

`/api/campaign-values-reports`

`klaviyo.campaigns.report`

Opens, clicks, deliveries, conversions and revenue per campaign (and message, channel) over a timeframe.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`data` required</td><td>object</td><td>body</td><td>\{"type": "campaign-values-report", "attributes": \{statistics, timeframe, conversion\_metric\_id, group\_by, filter}}. statistics (required): any of average\_order\_value, bounce\_rate, bounced, bounced\_or\_failed, bounced\_or\_failed\_rate, click\_rate, click\_to\_open\_rate, clicks, clicks\_unique, conversion\_rate, conversion\_uniques, conversion\_value, conversions, delivered, delivery\_rate, failed, failed\_rate, message\_segment\_count\_sum, open\_rate, opens, opens\_unique, recipients, revenue\_per\_recipient, spam\_complaint\_rate, spam\_complaints, text\_message\_credit\_usage\_amount, text\_message\_roi, text\_message\_spend, unsubscribe\_rate, unsubscribe\_uniques, unsubscribes. timeframe (required): \{"key": one of last\_12\_months, last\_30\_days, last\_365\_days, last\_3\_months, last\_7\_days, last\_90\_days, last\_month, last\_week, last\_year, this\_month, this\_week, this\_year, today, yesterday} or \{"start", "end"} date-times, at most one year, in the account's timezone. conversion\_metric\_id (required): the metric id conversions count (e.g. Placed Order, from klaviyo.metrics.list). group\_by: any of campaign\_id, campaign\_message\_id, campaign\_message\_name, group, group\_name, send\_channel, tag\_id, tag\_name, text\_message\_format, variation, variation\_name. filter: e.g. and(equals(campaign\_id,"abc"),contains-any(send\_channel,\["email","sms"])); send\_channel is email, sms, push-notification or whatsapp. Example `{"type": "campaign-values-report", "attributes": {"statistics": ["opens", "open_rate", "clicks", "conversion_value"], "timeframe": {"key": "last_30_days"}, "conversion_metric_id": "RESQ6t"}}`</td></tr>

    <tr>
      <td>
        `page_cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor from the previous page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.klaviyo.com/en/reference/query_campaign_values) · Same job: [Amplitude](https://docs.webrouter.net/data-apis/amplitude.md#amplitude-charts-query), [Close](https://docs.webrouter.net/data-apis/close-crm.md#close-crm-reports-activity), [Cloudflare](https://docs.webrouter.net/data-apis/cloudflare.md#cloudflare-analytics-graphql), [Google Analytics 4 (Data API)](https://docs.webrouter.net/data-apis/google-analytics.md#google-analytics-report-run), [Instagram Graph API](https://docs.webrouter.net/data-apis/instagram.md#instagram-user-insights), [Microsoft Graph (Microsoft 365)](https://docs.webrouter.net/data-apis/microsoft-graph.md#microsoft-graph-reports-active-users)

```python Python theme={null}
router.call_data_api("klaviyo.campaigns.report", {'data': {'type': 'campaign-values-report', 'attributes': {'statistics': ['opens', 'open_rate', 'clicks', 'conversion_value'], 'timeframe': {'key': 'last_30_days'}, 'conversion_metric_id': 'RESQ6t'}}})
```

```text MCP theme={null}
call_data_api(endpoint="klaviyo.campaigns.report", params={"data": {"type": "campaign-values-report", "attributes": {"statistics": ["opens", "open_rate", "clicks", "conversion_value"], "timeframe": {"key": "last_30_days"}, "conversion_metric_id": "RESQ6t"}}})
```

> [!NOTE]
>
> * A read over POST. Needs campaigns:read. 1/s, 2/min, 225/day.

### Flow performance report

POST

`/api/flow-values-reports`

`klaviyo.flows.report`

Opens, clicks, deliveries, conversions and revenue per flow (and message, channel) over a timeframe.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`data` required</td><td>object</td><td>body</td><td>\{"type": "flow-values-report", "attributes": \{statistics, timeframe, conversion\_metric\_id, group\_by, filter}}. statistics (required): any of average\_order\_value, bounce\_rate, bounced, bounced\_or\_failed, bounced\_or\_failed\_rate, click\_rate, click\_to\_open\_rate, clicks, clicks\_unique, conversion\_rate, conversion\_uniques, conversion\_value, conversions, delivered, delivery\_rate, failed, failed\_rate, message\_segment\_count\_sum, open\_rate, opens, opens\_unique, recipients, revenue\_per\_recipient, spam\_complaint\_rate, spam\_complaints, text\_message\_credit\_usage\_amount, text\_message\_roi, text\_message\_spend, unsubscribe\_rate, unsubscribe\_uniques, unsubscribes. timeframe (required): \{"key": one of last\_12\_months, last\_30\_days, last\_365\_days, last\_3\_months, last\_7\_days, last\_90\_days, last\_month, last\_week, last\_year, this\_month, this\_week, this\_year, today, yesterday} or \{"start", "end"} date-times, at most one year, in the account's timezone. conversion\_metric\_id (required): the metric id conversions count (e.g. Placed Order, from klaviyo.metrics.list). group\_by: any of flow\_id, flow\_message\_id, flow\_message\_name, flow\_name, send\_channel, tag\_id, tag\_name, text\_message\_format, variation, variation\_name. filter: e.g. and(equals(flow\_id,"abc"),contains-any(send\_channel,\["email","sms"])); send\_channel is email, sms, push-notification or whatsapp. Example `{"type": "flow-values-report", "attributes": {"statistics": ["opens", "open_rate", "clicks", "conversion_value"], "timeframe": {"key": "last_30_days"}, "conversion_metric_id": "RESQ6t"}}`</td></tr>

    <tr>
      <td>
        `page_cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor from the previous page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.klaviyo.com/en/reference/query_flow_values) · Same job: [Amplitude](https://docs.webrouter.net/data-apis/amplitude.md#amplitude-charts-query), [Close](https://docs.webrouter.net/data-apis/close-crm.md#close-crm-reports-activity), [Cloudflare](https://docs.webrouter.net/data-apis/cloudflare.md#cloudflare-analytics-graphql), [Google Analytics 4 (Data API)](https://docs.webrouter.net/data-apis/google-analytics.md#google-analytics-report-run), [Instagram Graph API](https://docs.webrouter.net/data-apis/instagram.md#instagram-user-insights), [Microsoft Graph (Microsoft 365)](https://docs.webrouter.net/data-apis/microsoft-graph.md#microsoft-graph-reports-active-users)

```python Python theme={null}
router.call_data_api("klaviyo.flows.report", {'data': {'type': 'flow-values-report', 'attributes': {'statistics': ['opens', 'open_rate', 'clicks', 'conversion_value'], 'timeframe': {'key': 'last_30_days'}, 'conversion_metric_id': 'RESQ6t'}}})
```

```text MCP theme={null}
call_data_api(endpoint="klaviyo.flows.report", params={"data": {"type": "flow-values-report", "attributes": {"statistics": ["opens", "open_rate", "clicks", "conversion_value"], "timeframe": {"key": "last_30_days"}, "conversion_metric_id": "RESQ6t"}}})
```

> [!NOTE]
>
> * A read over POST. Needs flows:read. 1/s, 2/min, 225/day.

### List campaigns

GET

`/api/campaigns`

`klaviyo.campaigns.list`

Campaigns with name, status, send settings and optionally their messages, audiences and tags.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`filter`</td><td>string</td><td>query</td><td>Filter string. Fields: id (any), name (contains), archived (equals), builder (equals), created\_at / updated\_at (greater-or-equal, greater-than, less-or-equal, less-than). Example `greater-than(created_at,2026-10-01T00:00:00Z)`</td></tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `created_at`

        ,&#x20;

        `-created_at`

        ,&#x20;

        `updated_at`

        ,&#x20;

        `-updated_at`

        ,&#x20;

        `id`

        ,&#x20;

        `-id`

        ,&#x20;

        `name`

        ,&#x20;

        `-name`
      </td>
    </tr>

    <tr>
      <td>
        `include`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated: campaign-audiences, campaign-messages, tags.
      </td>
    </tr>

    <tr>
      <td>
        `page_size`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-100, default 100.
      </td>
    </tr>

    <tr>
      <td>
        `page_cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor from links.next.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.klaviyo.com/en/reference/get_campaigns)

```python Python theme={null}
router.call_data_api("klaviyo.campaigns.list", {'filter': 'greater-than(created_at,2026-10-01T00:00:00Z)'})
```

```text MCP theme={null}
call_data_api(endpoint="klaviyo.campaigns.list", params={"filter": "greater-than(created_at,2026-10-01T00:00:00Z)"})
```

> [!NOTE]
>
> * Needs campaigns:read.

### List flows

GET

`/api/flows`

`klaviyo.flows.list`

Automated flows with name, status, trigger type and dates.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`filter`</td><td>string</td><td>query</td><td>Filter string. Fields: id (any), name (contains, ends-with, equals, starts-with), status (equals), archived (equals), created / updated (equals, greater-or-equal, greater-than, less-or-equal, less-than), trigger\_type (equals: Metric, Added to List, Unconfigured, Date Based, Price Drop, Low Inventory). Example `equals(status,'live')`</td></tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        created, id, name, status, trigger\_type or updated; prefix - for descending.
      </td>
    </tr>

    <tr>
      <td>
        `page_size`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-50, default 50.
      </td>
    </tr>

    <tr>
      <td>
        `page_cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td />
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.klaviyo.com/en/reference/get_flows)

```python Python theme={null}
router.call_data_api("klaviyo.flows.list", {'filter': "equals(status,'live')"})
```

```text MCP theme={null}
call_data_api(endpoint="klaviyo.flows.list", params={"filter": "equals(status,'live')"})
```

> [!NOTE]
>
> * Needs flows:read.

### List metrics

GET

`/api/metrics`

`klaviyo.metrics.list`

Event metrics in the account (Placed Order, Opened Email, ...) with their ids and integrations.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`filter`</td><td>string</td><td>query</td><td>equals(integration.name,'...') or equals(integration.category,'...'). Example `equals(integration.name,'Shopify')`</td></tr>

    <tr>
      <td>
        `page_cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Up to 200 per page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.klaviyo.com/en/reference/get_metrics) · Same job: [Datadog](https://docs.webrouter.net/data-apis/datadog.md#datadog-metrics-list-active), [Mux](https://docs.webrouter.net/data-apis/mux.md#mux-dimensions-list)

```python Python theme={null}
router.call_data_api("klaviyo.metrics.list", {'filter': "equals(integration.name,'Shopify')"})
```

```text MCP theme={null}
call_data_api(endpoint="klaviyo.metrics.list", params={"filter": "equals(integration.name,'Shopify')"})
```

> [!NOTE]
>
> * Needs metrics:read.

### Aggregate a metric over time

POST

`/api/metric-aggregates`

`klaviyo.metrics.aggregate`

Counts, sums or unique counts of one metric's events per day, hour, week or month, optionally grouped by dimensions like \$flow or Campaign Name.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`data` required</td><td>object</td><td>body</td><td>\{"type": "metric-aggregate", "attributes": \{metric\_id (required), measurements (required: count, sum\_value, unique), filter (required: a datetime range as \["greater-or-equal(datetime,...)", "less-than(datetime,...)"]), interval (day default, hour, week, month), by (dimensions such as \$flow, \$message, \$attributed\_channel, Campaign Name, URL), timezone (IANA, default UTC), page\_size (default 500), sort}}. Example `{"type": "metric-aggregate", "attributes": {"metric_id": "0rG4eQ", "measurements": ["count", "sum_value"], "interval": "day", "filter": ["greater-or-equal(datetime,2026-10-01T00:00:00)", "less-than(datetime,2026-11-01T00:00:00)"], "timezone": "UTC"}}`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.klaviyo.com/en/reference/query_metric_aggregates) · Same job: [Datadog](https://docs.webrouter.net/data-apis/datadog.md#datadog-metrics-query), [Mux](https://docs.webrouter.net/data-apis/mux.md#mux-metrics-overall), [Oh Dear](https://docs.webrouter.net/data-apis/ohdear.md#ohdear-uptime-http-metrics)

```python Python theme={null}
router.call_data_api("klaviyo.metrics.aggregate", {'data': {'type': 'metric-aggregate', 'attributes': {'metric_id': '0rG4eQ', 'measurements': ['count', 'sum_value'], 'interval': 'day', 'filter': ['greater-or-equal(datetime,2026-10-01T00:00:00)', 'less-than(datetime,2026-11-01T00:00:00)'], 'timezone': 'UTC'}}})
```

```text MCP theme={null}
call_data_api(endpoint="klaviyo.metrics.aggregate", params={"data": {"type": "metric-aggregate", "attributes": {"metric_id": "0rG4eQ", "measurements": ["count", "sum_value"], "interval": "day", "filter": ["greater-or-equal(datetime,2026-10-01T00:00:00)", "less-than(datetime,2026-11-01T00:00:00)"], "timezone": "UTC"}}})
```

> [!NOTE]
>
> * A read over POST. Needs metrics:read. 3/s, 60/min.
> * Custom metrics are not supported here.


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