Klaviyo API client built on native fetch using hey-api codegen. Version 1.1.0 generates TypeScript types and SDK functions from Klaviyo's OpenAPI spec. It provides a lightweight, tree-shakable alternative to the official Klaviyo SDK, leveraging browser-native fetch for reduced bundle size and compatibility with modern JS environments. The package is auto-generated and released via npm with no standalone dependencies.
npm install klaviyo-api-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Fetch events from Klaviyo API using native fetch with required auth headers and pagination fields.
Set 'revision' header to the appropriate API version date as documented in Klaviyo API changelog.
Use import syntax or dynamic import() instead.
Migrate from positional arguments to options object: e.g., client.getEvents({...}) instead of getEvents(headers, query, ...).Use 'event_properties' only if necessary; prefer 'properties' field for future compatibility.
Change const { getEvents } = require('klaviyo-api-fetch'); to import { getEvents } from 'klaviyo-api-fetch';Add 'revision' header with a valid Klaviyo API revision date (e.g., '2025-01-15').
Check the Klaviyo API documentation for correct parameter names and formats. Ensure all required fields are included.
Use Node.js 18+ or install a fetch polyfill like 'node-fetch'.
No dependency data recorded yet.