Klaviyo

App · Email Marketing · 5 actions

Connect your Klaviyo account to manage profiles, list subscriptions, and track marketing events.

Actions

ActionWhat it does
Create profileCreate a new Klaviyo profile, or return the existing profile's ID if the email is already in use.
Get profileLook up a Klaviyo profile by email address.
List listsList the lists in your Klaviyo account.
Subscribe profile to listAdd a profile (creating it if needed) to a Klaviyo list.
Track eventLog a custom event (e.g. 'Placed Order') for a profile, for use in Klaviyo flows and segments.

Create profile

Create a new Klaviyo profile, or return the existing profile's ID if the email is already in use.

Inputs

EmailemailtextRequired
Email address for the profile.
First namefirst_nametext
First name of the profile.
Last namelast_nametext
Last name of the profile.
Phone numberphone_numbertext
Phone number in E.164 format, e.g. +15555550100.

Outputs

idtext
ID of the profile (new or already existing).
Example output
{
  "id": "01HABCDEF1234567890ABCDEF"
}

Get profile

Look up a Klaviyo profile by email address.

Inputs

EmailemailtextRequired
Email address of the profile to look up.

Outputs

profileobject
The matching profile, or null if no profile has that email
Example output
{
  "profile": {
    "email": "jane@example.com",
    "first_name": "Jane",
    "id": "01HABCDEF1234567890ABCDEF",
    "last_name": "Doe",
    "phone_number": "+15555550100"
  }
}

List lists

List the lists in your Klaviyo account.

Inputs

None.

Outputs

listslist
List of lists in the account
Example output
{
  "lists": [
    {
      "id": "Y6nRLr",
      "name": "Newsletter"
    }
  ]
}

Subscribe profile to list

Add a profile (creating it if needed) to a Klaviyo list.

Inputs

EmailemailtextRequired
Email address of the profile to subscribe.
List IDlist_idtextRequired
ID of the list to add the profile to.

Outputs

list_idtext
ID of the list the profile was added to
profile_idtext
ID of the subscribed profile
Example output
{
  "list_id": "Y6nRLr",
  "profile_id": "01HABCDEF1234567890ABCDEF"
}

Track event

Log a custom event (e.g. 'Placed Order') for a profile, for use in Klaviyo flows and segments.

Inputs

EmailemailtextRequired
Email address of the profile the event belongs to.
Metric namemetric_nametextRequired
Name of the event/metric, for example 'Placed Order'.
Propertiespropertiesobject
Custom properties to attach to the event.
Valuevaluenumber
Optional numeric value for the event, for example an order total.

Outputs

None.

Example output
{}

On this page