envs

Klaviyo — marketing automation

klaviyo/api · version 1

envs add klaviyo/api

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
KLAVIYO_PUBLIC_API_KEY optional config Klaviyo says it is safe to expose because it cannot be used to read anything in your account, and that there is no risk if it is. Also called the site id, and documented as six characters.. Shape ^[A-Za-z0-9]{6}$. where to get it
KLAVIYO_PRIVATE_API_KEY required secret Klaviyo says to treat private keys like passwords and never expose one, and to create a replacement and deactivate the old immediately if one leaks. It also warns against using this key with the client-side APIs the public key is for.. where to get it

The JSON the CLI reads