If you sell online, you already know the emails that earn money: the welcome series, the abandoned cart reminder, the “we miss you” coupon. The hard part is getting the right customer into the right message at the right time, and knowing which ones actually worked. Klaviyo handles that, and it does it through an API, which means your store, your other business systems or an AI assistant can add customers, build audiences, create coupons and pull results without anyone exporting spreadsheets.
What Klaviyo does
Klaviyo is a marketing automation and customer data platform built for ecommerce. You bring your customer and order data in, and it sends personalized email, SMS and mobile push. Its API covers profiles, events, lists, segments, campaigns, flows, catalogs, coupons, metrics, reviews, templates, webhooks and reporting.
What you can get done
Digital Marketing Management
A flow is an automated sequence of messages triggered by something a customer does, like signing up or leaving a cart. These operations let you manage flows from your own tools.
GET /api/flowslists your automated flows.POST /api/flowscreates a new flow from a definition.GET /api/flows/{id}returns a flow’s details and status.PATCH /api/flows/{id}turns a flow live or puts it back in draft.
Customer Data Management
A profile is everything Klaviyo knows about one customer. Keeping profiles accurate is what makes the personalization work.
GET /api/profileslists and filters the profiles in your account.POST /api/profilesadds a new profile.GET /api/profiles/{id}looks up a single profile.PATCH /api/profiles/{id}updates a profile’s attributes.
Customer Segmentation Management
A segment is a group of customers that match conditions, such as repeat buyers. Segments decide who gets what.
GET /api/segmentslists your segments.POST /api/segmentsbuilds a new segment from a set of conditions.GET /api/segments/{id}gets a segment, including how many profiles are in it.PATCH /api/segments/{id}changes a segment’s name or rules.
Discount & Promotion Management
Unique coupon codes stop a discount from being shared all over the internet.
GET /api/couponslists your coupons.POST /api/couponscreates a coupon you can generate unique codes for.GET /api/coupons/{id}looks up one coupon’s settings.PATCH /api/coupons/{id}updates a coupon.
Marketing Operations Management
This is the “did it work” part: totals and trends for campaigns, flows and signup forms.
POST /api/campaign-values-reportsreports campaign performance totals, such as open and click rates.POST /api/flow-values-reportsreports flow performance totals, such as revenue.POST /api/flow-series-reportsreports how a flow performed over time.POST /api/form-values-reportsreports signup form performance.
Klaviyo also covers signup forms, webhooks that notify your own systems when events happen, and product reviews.
Ask for it in plain language
Klaviyo has 23 phrasing overlays on APIs.io. They map plain questions to the operation that answers them, so an AI assistant knows which call to make. These are the kinds of questions they cover:
- What automated flows do I have in Klaviyo?
- How many profiles are in a particular segment?
- How do I set up a new coupon that I can generate unique codes for?
- How much revenue did my welcome flow drive overall?
- What were the open and click rates for my campaigns last month?
The Klaviyo Campaigns API phrasing overlay is a good example.
Getting started
Klaviyo is a hosted service with self-serve signup. Plans are in the pricing section of its APIs.io profile. The Klaviyo developer docs and its authentication guide are where to start.
The Klaviyo profile on APIs.io lists the Campaigns API, the Catalogs API and the Client API. Pull last month’s flow report first; it tells you which emails are earning and which to fix.
