Skip to main content
Solved

GET profile by email

  • January 12, 2023
  • 3 replies
  • 2844 views

Forum|alt.badge.img+3
  • Problem Solver I
  • 3 replies

Is there any way to GET a Profile using only an email? Looking to only make 1 call and get the profile, but will not have the ID available in the first call. 

Best answer by Khard

Silly me. I was working with an old api and assumed new one would give similar response of only the profile ID. 

 

This was a simple query added to endpoint. 

/api/profiles?filter=equals(email,"johnsmith@domain.com")

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

3 replies

Forum|alt.badge.img+3
  • Author
  • Problem Solver I
  • 3 replies
  • Answer
  • January 12, 2023

Silly me. I was working with an old api and assumed new one would give similar response of only the profile ID. 

 

This was a simple query added to endpoint. 

/api/profiles?filter=equals(email,"johnsmith@domain.com")


David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • January 12, 2023

Hey @Khard,

Simple mistake to make! Appreciate you sharing your own answer in case others may run into the same mistake in the future.

Just to add more context for others who may come across this, I’ve included our Get Profiles Developer API reference here for others to review. 

Thanks for being a part of our Klaviyo Community!

David


Forum|alt.badge.img
  • Contributor I
  • 1 reply
  • August 17, 2023

But this way we can not use include=lists, becasue of - "'lists' include is not currently supported when listing profiles."