Understanding how information is exchanged between Klaviyo and apps

Estimated 3 minute read
|
Updated Aug 22, 2024, 10:44 AM EST
You will learn

You will learn

Learn about how information syncs between Klaviyo and your third-party apps via an application programming interface (API). Most data exchanged via a Klaviyo integration is one-way: data is pulled into your Klaviyo account so you can leverage a broad scope of your customer's data. 

How integrations sync information to and from Klaviyo

How integrations sync information to and from Klaviyo

Klaviyo’s API is a set of interfaces where data is exchanged between Klaviyo and other applications connected to your Klaviyo account. To initially integrate Klaviyo with another application, you’ll need to use an API key. An API key is a unique identifier tied to your specific account.

Klaviyo generates two types of API keys, both of which can be found in your account:

  • Public
    Your public API key, sometimes referred to as your Site ID, is the unique identifier for your Klaviyo account. This key cannot be used by a third-party app to access private information within your Klaviyo account.
  • Private
    Private API keys are used to read data from Klaviyo and manipulate sensitive objects, such as lists. They ensure the process of updating subscriptions and other customer information is secure and private. Private API keys should be treated like your password: kept in a safe place and never exposed to the public. You can generate new private API keys for different applications to trace the source of data being added to your Klaviyo account.

For more specific information regarding types of Klaviyo API Keys, see our API reference documentation.

Klaviyo's REST APIs

Klaviyo's REST APIs

REST is an architectural style that provides guidelines for platform-agnostic communication between applications on the internet. The Klaviyo REST APIs primarily communicate using a JavaScript Object Notation (JSON) format, which provides a structured layout for the information contained in the API messages. The following areas of your Klaviyo account can be accessed via the our REST APIs:

  • Accounts
  • Campaigns
  • Catalogs
  • Coupons
  • Data Privacy
  • Events
  • Flows
  • Images
  • Lists
  • Metrics
  • Profiles
  • Reporting
  • Segments
  • Tags
  • Templates

While the APIs above are designed to be called from server-side applications, we also have a Client API for creating events and subscriptions from client-side applications. 

The klaviyo JavaScript object

The klaviyo JavaScript object

The klaviyo object replaces the legacy _learnq and klOnsite objects. These JavaScript objects offer a shorthand way to interact with our APIs and send events into Klaviyo. The klaviyo object allows you to identify known profiles, and track events and actions on your website. 

Additional resources

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type