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 KlaviyoHow 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 APIsKlaviyo'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 objectThe 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 resourcesAdditional resources
- Understanding the types of information exchanged between Klaviyo and apps
- Getting started with Klaviyo APIs
- Glossary of common API terms
- Need more help integrating with Klaviyo? Check out Klaviyo's Agency Partners