klaviyo-install-auth

Featured

Install and configure Klaviyo Node.js SDK with API key authentication. Use when setting up a new Klaviyo integration, configuring API keys, or initializing the klaviyo-api package in your project. Trigger with phrases like "install klaviyo", "setup klaviyo", "klaviyo auth", "configure klaviyo API key", "klaviyo SDK setup".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Klaviyo Install & Auth ## Overview Set up the official `klaviyo-api` Node.js SDK and configure private API key authentication against Klaviyo's REST API (revision `2024-10-15`). ## Prerequisites - Node.js 18+ (or Python 3.10+ for Python SDK) - Klaviyo account at https://www.klaviyo.com/ - Private API key from **Settings > API Keys** in Klaviyo dashboard - Public API key (for client-side only -- never use in server code) ## Instructions ### Step 1: Install the Official SDK ```bash # Node.js (official SDK -- NOT @klaviyo/sdk, that's deprecated) npm install klaviyo-api # Python pip install klaviyo-api ``` > **Important:** The npm package is `klaviyo-api`, not `@klaviyo/sdk`. The SDK exports per-resource API classes (ProfilesApi, EventsApi, etc.) that each take an `ApiKeySession`. ### Step 2: Configure Authentication ```bash # .env (NEVER commit to git) KLAVIYO_PRIVATE_KEY=pk_*********************************** KLAVIYO_PUBLIC_KEY=UXxxXx # Only for client-side endpoints # .gitignore -- ensure secrets are excluded echo '.env' >> .gitignore echo '.env.local' >> .gitignore ``` Klaviyo uses two key types: | Key Type | Prefix | Use Case | Header | |----------|--------|----------|--------| | Private API Key | `pk_` | Server-side REST API | `Authorization: Klaviyo-API-Key pk_***` | | Public API Key | 6-char | Client-side Track/Identify | Query param `company_id` | ### Step 3: Initialize the SDK ```typescript // src/klaviyo/client.ts import { ApiKeySession, ProfilesApi...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category