Solved

Reutrn klaviyo profile id on identify


Badge

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.

 

icon

Best answer by david.to 2 June 2021, 16:54

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

2 replies

Userlevel 6
Badge +4

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

Badge

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

 

Thanks.

Reply