Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Installs the official klaviyo-api Node.js SDK and configures private API key authentication for Klaviyo's REST API.
36% 86%+50 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 8 of 22 without it.
If a development team chooses to implement their server backend in Python instead of Node.js for Klaviyo API integration, what is the minimum Python runtime version required?
Specifies Python version 3.10 or higher.
3 of 3 safety checks passed
This is the complete, step-by-step implementation referenced from the lean
SKILL.md. It preserves every code block and edge-case detail so you can drill
in when you need depth beyond the high-level skeleton.
# 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 anApiKeySession.
# .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 |
Next to this one in the catalogue, plus more from the same author.