Skip to main content

Prerequisites

  • A Klaviyo Account. You can create a test account here.

Authentication methods

Paragon supports two authentication methods for the Klaviyo integration. You choose one Application Type when you enable Klaviyo in the Paragon dashboard—that choice applies to every user connection for that integration.
  • OAuth 2.0 (recommended): Authorization Code flow with PKCE. This is the default for new Klaviyo integrations and is required for Klaviyo Marketplace app listings.
  • Private Key Authentication (legacy): End users connect with a Klaviyo private API key. Paragon documents this path as Basic Auth in the Connect Portal.
The Application Type is fixed per integration in the dashboard. It cannot be switched per connection with the Connect SDK—accountType is not supported for Klaviyo (Application Type integrations).
Existing connections that use private API keys continue to work after you enable OAuth for new projects. Paragon does not require migrating legacy keys, though Klaviyo recommends OAuth for new apps.

Configure OAuth 2.0 in the dashboard

With OAuth 2.0 selected as the Application Type, add the OAuth app your users will authorize against (often your own Klaviyo developer app):
  • Client ID and Client Secret from your Klaviyo OAuth app
  • Scopes—Klaviyo requires accounts:read at minimum. Typical Paragon integrations also request scopes for accounts, campaigns, events, lists, metrics, profiles, segments, subscriptions, and templates, depending on your workflows and ActionKit tools.
Paragon stores refresh tokens and issues access tokens (about one hour lifetime). API calls use Authorization: Bearer {access_token}.

Configure Private Key Authentication in the dashboard

With Private Key Authentication (legacy) selected, end users enter a Klaviyo private API key in the Connect Portal. Paragon sends requests with the Klaviyo-API-Key header.

Connecting with OAuth 2.0

When OAuth 2.0 is configured, your users connect through the standard Connect Portal authorization flow. After they authorize your Klaviyo app, you can use the Paragon SDK to call the Klaviyo API on their behalf—authentication is handled by Paragon. See the Klaviyo API documentation for their full API reference.

Connecting with Private Key Authentication (legacy)

Your users need a Klaviyo private API key to connect when Private Key Authentication is enabled for your integration. Users can find or create keys under Account > Settings > API keys in the Klaviyo Account dashboard. Once your users have connected their Klaviyo account, you can use the Paragon SDK to access the Klaviyo API on behalf of connected users. Any Klaviyo API endpoints can be accessed with the Paragon SDK as shown in this example.

Creating a Klaviyo private API key

Your end-users enter their Klaviyo private API key when they first connect to your application. To create a Klaviyo private API key:
  1. Log in to Klaviyo.
  2. Navigate to Accounts > App Configuration > Configure > API Keys, and click the blue “Create Private API Key” button.
  3. Copy your private API key.
  4. Paste your private API key in the Connect Portal to authenticate.

Building Klaviyo workflows

Once your Klaviyo account is connected, you can add steps to perform the following actions:
  • Create Campaign
  • Get Campaigns
  • Send Campaign
  • Create List
  • Add Subscriber to List
  • Remove Subscriber from List
  • Get Lists
  • Get List Subscribers
  • Get Profile
  • Update Profile
  • Create Template
  • Get Templates
  • Get Segments
  • Get Segment Subscribers
You can also use the Klaviyo Request step to access any of Klaviyo’s API endpoints without the authentication piece. When creating or updating campaigns and lists in Klaviyo, you can reference data from previous steps by typing {{ to invoke the variable menu.