Skip to main content

Setup

Put them in your environment or .env; Data APIs 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

Campaign performance report

  • A read over POST. Needs campaigns:read. 1/s, 2/min, 225/day.

Flow performance report

  • A read over POST. Needs flows:read. 1/s, 2/min, 225/day.

List campaigns

  • Needs campaigns:read.

List flows

  • Needs flows:read.

List metrics

  • Needs metrics:read.

Aggregate a metric over time

  • A read over POST. Needs metrics:read. 3/s, 60/min.
  • Custom metrics are not supported here.