Skip to main content
Solved

klaviyo exchange id returns multiple klaviyo profiles

  • February 19, 2024
  • 5 replies
  • 225 views

Forum|alt.badge.img+2

Hello,

recently we’ve been using the klaviyo exchange id which exists on the client in order to fetch the profile.
we use this api call:
https://a.klaviyo.com/api/profiles/
and with filters set to filter=equals%28_kx%2C%27exchange_ID…

for some reason, we sometimes get multiple profiles as the response, and are unsure why it happens, any hint will help.
 

Thanks,

Best answer by KeviSunshine

Okay, that thread is referring to entities that seem to be deprecated or in the process of being deprecated; I am not sure how to proceed.

Is it possible for you to identify an exchange ID that returned multiple profiles? I have a feeling this exchange ID might not be unique and that’s what the problem is; I must assume it’s possible to have multiple profiles with the same exchange ID.

View original
Did this topic or the replies in the thread help you find an answer to your question?

5 replies

KeviSunshine
Expert Problem Solver III
Forum|alt.badge.img+8
  • Expert Problem Solver III
  • 159 replies
  • February 19, 2024

I’ve never used Exchange IDs and am curious how they work; are these definitely unique IDs?

Is there anything noticeable in the response when you get multiple profiles? I’d look for potential duplicate profiles, a missing exchange ID (i.e., all profiles w/o exchange IDs are returned), etc.

Also, can you show the exact endpoint you’re using to get the profile? (A link to the Klaviyo API documentation would be perfect).

 

Any additional details will help!

 

Best,

Kevin.


Forum|alt.badge.img+2

yes, klaviyo stores a signed id which help identification in the backend (they used to store the email but moved to a more secure way).
i’ll research a bit the data to see if i’m finding something interesting about why there are multiples.

re link, here it is:
https://developers.klaviyo.com/en/reference/get_profiles
you’ll see that there’s a _kx filter you can use (5th in the list of filters)


KeviSunshine
Expert Problem Solver III
Forum|alt.badge.img+8
  • Expert Problem Solver III
  • 159 replies
  • February 19, 2024

Ahh, okay, and these IDs are in the format `01HP7C33YVB0N24TP22Z0XH76G`? Is the exchange ID the same thing as the Klaviyo profile ID?


Forum|alt.badge.img+2

KeviSunshine
Expert Problem Solver III
Forum|alt.badge.img+8
  • Expert Problem Solver III
  • 159 replies
  • Answer
  • February 19, 2024

Okay, that thread is referring to entities that seem to be deprecated or in the process of being deprecated; I am not sure how to proceed.

Is it possible for you to identify an exchange ID that returned multiple profiles? I have a feeling this exchange ID might not be unique and that’s what the problem is; I must assume it’s possible to have multiple profiles with the same exchange ID.