Klaviyo

Email Marketing and SMS Marketing Platform

Go to site
Explore
/
Apps
/
Klaviyo

Klaviyo API Integrations

Build and run workflows using the Klaviyo API. Use 1000s of source-available triggers and actions across 2,000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

The Klaviyo API grants you the power to automate and personalize your email marketing efforts. With it, you can manage lists, profiles, and campaigns, track event-driven communications, and analyze the results. By leveraging this API on Pipedream, you can create intricate, automated workflows that respond in real-time to your users' behavior, sync data across multiple platforms, and tailor your marketing strategies to improve engagement and conversion rates.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    klaviyo: {
      type: "app",
      app: "klaviyo",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: ` https://a.klaviyo.com/api/accounts/`,
      headers: {
        "Authorization": `Klaviyo-API-Key ${this.klaviyo.$auth.api_key}`,
        "revision": `2023-12-15`,
      },
    })
  },
})

Choose an API to Connect with Klaviyo API

1
-
24
of
2,000+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Premium
Salesforce (REST API)
Salesforce (REST API)
Web services API for interacting with Salesforce
Premium
HubSpot
HubSpot
HubSpot's CRM platform contains the marketing, sales, service, operations, and website-building software you need to grow your business.
Premium
Zoho CRM
Zoho CRM
Zoho CRM is an online Sales CRM software that manages your sales, marketing, and support in one CRM platform.
Premium
Stripe
Stripe
Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.
Shopify Developer App
Shopify Developer App
Shopify is a user-friendly e-commerce platform that helps small businesses build an online store and sell online through one streamlined dashboard.
Premium
WooCommerce
WooCommerce
WooCommerce is the open-source ecommerce platform for WordPress.
Premium
Snowflake
Snowflake
A data warehouse built for the cloud
Premium
MongoDB
MongoDB
MongoDB is an open source NoSQL database management program.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.

Example Use Cases

  • Synchronize New Shopify Orders to Klaviyo for Personalized Follow-Ups: When a new order is placed in Shopify, trigger a workflow in Pipedream that captures order details and customer information. This data is then sent to Klaviyo to create or update a customer profile and trigger a personalized post-purchase email sequence.

  • Automate Lead Scoring Based on User Activity: Use Pipedream to listen for webhooks from Klaviyo that indicate user actions, like email opens, link clicks, or form submissions. Combine this with data from other sources, like CRMs or analytics tools, to calculate a lead score. Update the contact in Klaviyo with this score to segment audiences and target high-scoring leads with specialized campaigns.

  • Streamline Event Invitations and Follow-Ups with Zoom Webinar Registrations: When a user registers for a webinar on Zoom, Pipedream can capture this event and create a corresponding profile in Klaviyo, automatically adding them to an event-specific list. Post-webinar, use Klaviyo to send out tailored content, such as a recording of the event, additional resources, or calls to action, based on their engagement.

Getting Started

To get started using Klaviyo with Pipedream, you’ll need to create a new Klaviyo API key.

First, log in to your Klaviyo account, then open Settings in the bottom left-hand corner:

Open the drawer in the bottom left-hand drawer to open your Klaviyo account settings

Then, on the next page, click Create API Key to begin creating a new private API key.

Create a new Klaviyo API key

On this page, you can configure your API key settings, such as its name and permissions. We recommend naming this API key Pipedream so you can easily track where it’s used.

Next, you'll need to define the permissions for this API key. You can grant specific permissions, read-only access to all resources, or full read/write access. Don’t worry, you can change these settings later.

Choosing between permission levels

Once you have created your Klaviyo private API key, make sure to copy it to your clipboard and save it within Pipedream through either a Klaviyo trigger or action in a workflow, or by opening the dedicated Connected Accounts area in Pipedream.

Save the Klaviyo API key to Pipedream

Ensure you save the API key before closing the Klaviyo window, as this is the only time this private API key will be displayed.

Create New List with Klaviyo API on New Requests from HTTP / Webhook API
HTTP / Webhook + Klaviyo
 
Try it
Create New List with Klaviyo API on New Item in Feed from RSS API
RSS + Klaviyo
 
Try it
Add Member To List with Klaviyo API on New Message (Instant) from Discord API
Discord + Klaviyo
 
Try it
Add Member To List with Klaviyo API on New Message In Channels (Instant) from Slack API
Slack + Klaviyo
 
Try it
Add Member To List with Klaviyo API on New Message in Channel from Discord Bot API
Discord Bot + Klaviyo
 
Try it
Add Member To List with the Klaviyo API

Add member to a specific list. See the docs here

 
Try it
Create New List with the Klaviyo API

Creates a new list in an account. See the docs here

 
Try it
Get Lists with the Klaviyo API

Get a listing of all of the lists in an account. See the docs here

 
Try it

Troubleshooting

Klavyio uses standard HTTP status codes to communicate errors over it’s API.

Status Codes

200 OK

The request completed successfully.

201 Created

The request succeeded, and a new resource was created as a result.

202 Accepted

The request has been received but not yet acted upon. We return this status code for requests that were accepted but are processed asynchronously.

204 No Content

The request succeeded, but the API doesn’t provide a response body.

400 Bad Request

Request is missing a required parameter or has an invalid parameter.

401 Not Authorized

Request is lacking required authentication information.

Please follow the guidance here for more details on authenticating your API requests.

403 Forbidden

The request contains valid authentication information, but does not have permissions to perform the specified action.

See API key scopes for more information.

404 Not Found

The requested resource doesn't exist.

405 Method not Allowed

The requested resource doesn't support the provided HTTP method, e.g., DELETE.

409 Conflict

The request conflicts with the current state of the server.

410 Gone

The requested content has been permanently deleted from Klaviyo’s server. This status code will occur for requested endpoints that no longer exist in our API.

415 Unsupported Media Type

The Content-Type or Content-Encoding header is set incorrectly.

429 Rate Limit

You hit the rate limit for this endpoint (different endpoints have different rate limits).

500 Server Error

Something is wrong with the destination server. This may be on Klaviyo's end.

503 Service Unavailable

Something is wrong on Klaviyo’s end leading to service unavailability.

Check Klaviyo’s Status for updates.

Authentication

Klaviyo uses API keys for authentication. When you connect your Klaviyo account, Pipedream securely stores the keys so you can easily authenticate to Klaviyo APIs in both code and no-code steps.