Skip to main content
Contributor I
Apr 2, 2024 12:22 PM UTC
Solved

How to update klaviyo profile using external id or email ?

Hi team,
I’m new to klaviyo, I want to update custom properties in klaviyo profile but it requires profile id, Is there any API or method in npm ‘klaviyo-api’ package by which we can update profile using external id or an email ?

    Problem Solver III
    Apr 2, 2024 1:22 PM UTC

    Yes You can use Create or Update profile in the latest stable version of Klaviyo API - 

    API: /api/profile-import/
    Sample payload:

    {
    "data": {
    "type": "profile",
    "attributes": {
    "email": "test@klaviyo.com"
    }
    }
    }

     

    3 replies

    Contributor I
    Apr 2, 2024 12:43 PM UTC

    Hey. You can use create or update profile and send it just the email. 

    Problem Solver III
    Apr 2, 2024 1:22 PM UTC

    Yes You can use Create or Update profile in the latest stable version of Klaviyo API - 

    API: /api/profile-import/
    Sample payload:

    {
    "data": {
    "type": "profile",
    "attributes": {
    "email": "test@klaviyo.com"
    }
    }
    }

     

    Contributor I
    Apr 3, 2025 8:13 PM UTC

    ​@abhijithvs Are you showing a payload for creating/updating the email address? I think ​@Ray8998 is asking how to do an update without needing the id. I’m trying to do the same thing. For now, I’m doing a lookup using /api/profiles?filter=equals(email,"user@example.com") to get the id.