klaviyo-client
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

Klaviyo API client for Node.js and browser

This is a Klaviyo API client for Node.js and browser written in Typescript.

Installation

npm i klaviyo-client

or

yarn add klaviyo-client

Usage

The package contains two separate classes:

  • KlaviyoClient to identify profiles and track events. Klaviyo Token is needed to use it
  • KlaviyoApi to work with Klaviyo API. Klaviyo Token and API key are needed to use it. Currently it supports following operations:
    • Lists - get profiles from list and segments
    • Lists - create list
    • Lists - get all lists
    • Lists - get list details
    • Lists - update list
    • Lists - delete list
    • Profiles - get complete profile data
    • Profiles - create or update profile data
    • Profiles - get a list of profile events
    • Profiles - get a list of profile events by metric ID

The package supports providing generic event or profile properties types in order to work in well-known types manner.

Configuration

You can get API key and token in your Klaviyo account here.

Token is also known as Site ID or public API key.

Please read Klaviyo API documentation.

Need Help or Feature?

Drop me an email to Mikhail Monchak

Readme

Keywords

Package Sidebar

Install

npm i klaviyo-client

Weekly Downloads

54

Version

2.3.0

License

MIT

Unpacked Size

83.4 kB

Total Files

28

Last publish

Collaborators

  • mikhail-monchak