Email performance
get_email_performanceKlaviyo flows and email campaigns for the current period: revenue, sends, open rate and click rate per flow and campaign. Use when asked about email or SMS performance, or which flow earns the most. With compare, attributedComparison gives the revenue Klaviyo attributes to flows, to campaigns and in total for both periods with the change — Klaviyo's CLAIM, so 'Klaviyo attributes more than last year' tells you email did not cause a drop; it never proves email caused a rise. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the last 30 days, which is not that month.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period. | |
| from | No | First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period. | |
| compare | No | What to compare the span with: previous (default, the same number of days just before), yoy (the same dates last year) or yoyWeekday (52 weeks back, the same weekdays — use it for natural Monday–Sunday weeks or whenever the operator says 'last year' over weeks). |