Skip to main content

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 ?

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


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"
}
}
}

 


@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.


Reply