Skip to main content
Solved

Reutrn klaviyo profile id on identify


Forum|alt.badge.img+2

We are using node-klaviyo module to interact with Klaviyo API. We are adding user profile to klaviyo using identify method to do that. However it only returns 1 as a success.

 

I was wondering if we can get the klaviyo’s profile id for the user as a success, we wouldn’t need to explicitly call getProfileIdByEmail.

 

Best answer by David To

Hello @bikashlama,

Great question!

Klaviyo only provide a response of either 1 or 0 for the track & identify calls. A 1 response means your data was received successfully and is queued for processing. A 0 response means your data did not decode to valid JSON and was not queued for processing.

Outside of these two responses, Klaviyo does not support providing the Klaviyo Profile ID as a success response and would require you to utilize the getProfileIdByEmail call to identify the Klaviyo Profile ID. 

This is a great suggestion and I will be sharing this feedback to your Product Team to consider!

Appreciate the input and ideas! Thanks for being a member of the Klaviyo Community!

David

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

2 replies

David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • Answer
  • June 2, 2021

Hello @bikashlama,

Great question!

Klaviyo only provide a response of either 1 or 0 for the track & identify calls. A 1 response means your data was received successfully and is queued for processing. A 0 response means your data did not decode to valid JSON and was not queued for processing.

Outside of these two responses, Klaviyo does not support providing the Klaviyo Profile ID as a success response and would require you to utilize the getProfileIdByEmail call to identify the Klaviyo Profile ID. 

This is a great suggestion and I will be sharing this feedback to your Product Team to consider!

Appreciate the input and ideas! Thanks for being a member of the Klaviyo Community!

David


Forum|alt.badge.img+2
  • Author
  • Contributor IV
  • 7 replies
  • June 3, 2021

Yeah, I think it would be really nice to have profileId in response so that we could have avoid making another API Call.

 

Thanks.