Skip to main content

Klaviyo Connector

Klaviyo Klaviyo is a cloud based email marketing solution that enables e-commerce businesses to create, send, and analyze email and SMS campaigns.

Connections

API Key

Connection to Klaviyo using an API Key.

Authentication was developed using the following Documentation

Private keys will have the prefix pk_ followed by a longer alphanumeric string. Klaviyo allows you to generate multiple private keys for your applications. See the Obtain API credentials guide for more information

To Generate a Private Key:

  1. Log into your Klaviyo account and navigate to settings
  2. Under the Account tab select API Keys
  3. Select Create Private API Key
  4. Name the Key, provide the proper scope level and select Create
  5. Save and copy the private key into your integration connection configuration.
InputCommentsDefault
API KeyYour API Key for Klaviyo

OAuth 2.0

Connection to Klaviyo using OAuth 2.0.

Authentication was developed using the following Documentation

OAuth configuration requires setting up an app in Klaviyo. See the Set up OAuth guide for more information:

  1. Log into your Klaviyo account and navigate to the Manage apps page.
  2. Select Create App
  3. Name the app and copy your Client ID and Client Secret and enter them into the connection configuration of your integration
  4. Save and continue to proceed
  5. Once creation has been completed enter the the following into the Redirect URL field: https://oauth2.integrations.acme.com/callback and save.
  6. Select Review Submission to submit the app for completion.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
ScopesSpace separated list of scopes if needed
Client ID
Client secret

Actions

Bulk Create Events

Create a batch of events for one or more profiles.

InputCommentsDefault
Connection
Events ArrayAn array of events to create.

Create Campaign

Creates a campaign given a set of parameters, then returns it.

InputCommentsDefault
Connection
Campaign NameThe name of the campaign.
Campaign MessagesThe message(s) to send in the campaign.
Included AudiencesA list of included audiences.
Excluded AudiencesA list of excluded audiences.
Tracking OptionsThe tracking options for the campaign.
Send OptionsThe send options for the campaign.
Send StrategyThe send strategy for the campaign.

Create Event

Create a new event to track a profiles activity.

InputCommentsDefault
Connection
Event NameName of the event.
Event ProfileThe profile associated with this event.
Event PropertiesThe properties of the event.
Event TimeWhen this event occurred. By default, the time the request was received will be used.
Event ValueA numeric, monetary value to associate with this event.
Event Value CurrencyThe ISO 4217 currency code of the value associated with the event.
Event Unique IDA unique identifier for this event.

Create List

Create a new list.

InputCommentsDefault
Connection
List NameA helpful name to label the list.Newsletter

Create Profile

Create a new profile.

InputCommentsDefault
Connection
EmailIndividual's email address
Phone NumberIndividual's phone number in E.164 format
External IDA unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.
First NameIndividual's first name
Last NameIndividual's last name
OrganizationName of the company or organization within the company for whom the individual works
TitleIndividual's job title
ImageURL pointing to the location of a profile image
LocationLocation information for the profile.
PropertiesAn object containing key/value pairs for any custom properties assigned to this profile.

Create Segment

Create a segment.

InputCommentsDefault
Connection
Segment NameThe name of the segment.
Segment Condition GroupsThe condition groups that define the segment.
Is Starred SegmentWhether the segment is starred.false

Create Template

Create a new custom HTML template.

InputCommentsDefault
Connection
Template NameThe name of the template.
Editor TypeRestricted to CODE.
Template HTMLThe HTML content of the template.
Template TextThe text content of the template.

Delete Campaign

Delete a campaign with the given campaign ID.

InputCommentsDefault
Connection
Campaign IDThe ID of the campaign.

Delete List

Delete a list with the given list ID.

InputCommentsDefault
Connection
List IDThe unique identifier of the list.

Delete Segment

Delete a segment with the given segment ID.

InputCommentsDefault
Connection
Segment IDThe ID of the segment.

Delete Template

Delete a template with the given template ID.

InputCommentsDefault
Connection
Template IDThe ID of the template.

Get Account

Retrieve a single account object by its account ID.

InputCommentsDefault
Connection
Account IDThe ID of the account to retrieve.
FieldsThe fields to include in the response.

Get Campaign

Returns a specific campaign based on a required id.

InputCommentsDefault
Connection
Campaign IDThe ID of the campaign.
FieldsThe fields to include in the response.

Get Event

Get an event with the given event ID.

InputCommentsDefault
Connection
Event IDThe ID of the event.
Event FieldsEvent fields to include in the response.
Metric FieldsMetric fields to include in the response.
Profile FieldsProfile fields to include in the response.

Get Image

Get the image with the given image ID.

InputCommentsDefault
Connection
Image IDThe ID of the image.
FieldsThe fields to include in the response.

Get List

Get a list with the given list ID.

InputCommentsDefault
Connection
List IDThe unique identifier of the list.
FieldsThe fields to include in the response.

Get Profile

Get the profile with the given profile ID.

InputCommentsDefault
Connection
Profile IDUnique identifier for the profile.
FieldsThe fields to include in the response.
Additional Profile FieldsRequest additional fields not included by default in the response.

Get Segment

Get a segment with the given segment ID.

InputCommentsDefault
Connection
Segment IDThe ID of the segment.
FieldsThe fields to include in the response.

Get Template

Get a template with the given template ID.

InputCommentsDefault
Connection
Template IDThe ID of the template.
FieldsThe fields to include in the response.

List Accounts

Retrieve the account(s) associated with a given private API key.

InputCommentsDefault
Connection
FieldsThe fields to include in the response.

List Campaigns

Returns some or all campaigns based on filters.

InputCommentsDefault
Connection
Filter CampaignsA filter to apply to the campaigns.equals(messages.channel,'sms')
FieldsThe fields to include in the response.

List Events

Get all events in an account.

InputCommentsDefault
Connection
Event FieldsEvent fields to include in the response.
Metric FieldsMetric fields to include in the response.
Profile FieldsProfile fields to include in the response.

List Images

Get all images in an account.

InputCommentsDefault
Connection
FieldsThe fields to include in the response.

List List Profiles

Get all profiles within a list with the given list ID.

InputCommentsDefault
Connection
List IDThe unique identifier of the list.
Additional Profile FieldsRequest additional fields not included by default in the response.
FieldsThe fields to include in the response.

List Lists

Get all lists in an account.

InputCommentsDefault
Connection
FieldsThe fields to include in the response.

List Profile

Get all profiles in an account.

InputCommentsDefault
Connection
FieldsThe fields to include in the response.
Additional Profile FieldsRequest additional fields not included by default in the response.

List Segments

Get all segments in an account.

InputCommentsDefault
Connection
FieldsThe fields to include in the response.

List Templates

Get all templates in an account.

InputCommentsDefault
Connection
FieldsThe fields to include in the response.

Raw Request

Send raw HTTP request to Klaviyo.

InputCommentsDefault
Connection
Exclude AuthorizationExclude the Authorization header from the request. Turn this on and include the company_id query param when calling public endpoints (/client).false
URLInput the path only (/api/accounts), The base URL is already included (https://a.klaviyo.com). For example, to connect to https://a.klaviyo.com/api/accounts, only /api/accounts is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Subscribe Profiles

Subscribe one or more profiles to email marketing, SMS marketing, or both.

InputCommentsDefault
Connection
ProfilesArray of profiles to subscribe.

Unsubscribe Profiles

Unsubscribe one or more profiles to email marketing, SMS marketing, or both.

InputCommentsDefault
Connection
ProfilesArray of profiles to unsubscribe.

Update Campaign

Update a campaign with the given campaign ID.

InputCommentsDefault
Connection
Campaign IDThe ID of the campaign.
Campaign NameThe name of the campaign.
Included AudiencesA list of included audiences.
Excluded AudiencesA list of excluded audiences.
Tracking OptionsThe tracking options for the campaign.
Send OptionsThe send options for the campaign.
Send StrategyThe send strategy for the campaign.

Update Image

Update the image with the given image ID.

InputCommentsDefault
Connection
Image IDThe ID of the image.
Image NameA name for the image. Defaults to the filename if not provided. If the name matches an existing image, a suffix will be added.
Image Hidden

Update List

Update the name of a list with the given list ID.

InputCommentsDefault
Connection
List IDThe unique identifier of the list.
List NameA helpful name to label the list.Newsletter

Update Profile

Update the profile with the given profile ID.

InputCommentsDefault
Connection
Profile IDUnique identifier for the profile.
EmailIndividual's email address
Phone NumberIndividual's phone number in E.164 format
External IDA unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.
First NameIndividual's first name
Last NameIndividual's last name
OrganizationName of the company or organization within the company for whom the individual works
TitleIndividual's job title
ImageURL pointing to the location of a profile image
LocationLocation information for the profile.
PropertiesAn object containing key/value pairs for any custom properties assigned to this profile.

Update Segment

Update a segment with the given segment ID.

InputCommentsDefault
Connection
Segment IDThe ID of the segment.
Segment NameThe name of the segment.
Segment Condition GroupsThe condition groups that define the segment.
Is Starred SegmentWhether the segment is starred.

Update Template

Update a template with the given template ID.

InputCommentsDefault
Connection
Template IDThe ID of the template.
Template NameThe name of the template.
Template HTMLThe HTML content of the template.
Template TextThe text content of the template.

Upload Image

Import an image from a url or file.

InputCommentsDefault
Connection
Image URLAn existing image url to import the image from. Alternatively, you may specify a base-64 encoded data-uri (data:image/...). Supported image formats: jpeg,png,gif. Maximum image size: 5MB. Use this field or File Data.
Image NameA name for the image. Defaults to the filename if not provided. If the name matches an existing image, a suffix will be added.
File DataThe contents to write to a file. Binary data generated from a previous step.