Skip to main content
Solved

Last Sync profile sync time for profile sync API


Devphoenix
Active Contributor II
Forum|alt.badge.img+3

Hi Team,

We have encountered a case where we need the Delta Sync feature.

What is the Delta Sync feature?

We need a parameter that provides us with the time of the last profile sync. This time will be used as a query parameter in the GET import profile API (https://a.klaviyo.com/api/lists/listid/profiles).

Why is it needed?

It will help synchronize profiles after a certain time with minimal profiles.

Example from Mailchimp: GET /3.0/lists/{list_id}/members?since_last_changed=October 5, 2023

Thanks

Best answer by Kim Strauch

I see. So you’re looking to get all of the profiles that have been created or updated that belong to a single list and sync that over time? Can you confirm if my understanding of what you’re trying to do is correct?

You can filter on `updated_at` on the Get Profiles API. Would that work for you? Or does it need to specific to those who are members on a particular list? Can you share more details on how you’re using these profiles so I can better understand the use case and ideal solution?

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

4 replies

Kim Strauch
Klaviyo Employee
Forum|alt.badge.img+9
  • Klaviyo Employee
  • 91 replies
  • November 20, 2023

Hey @Devphoenix! As of 2023-09-15, we have added support for a joined_group_at filter that I think accomplishes exactly what you’re describing (Changelog)

Here’s an example of this in action. Let us know if this works for your use case!
 

 


Devphoenix
Active Contributor II
Forum|alt.badge.img+3
  • Author
  • Active Contributor II
  • 17 replies
  • November 22, 2023

Hi @Kim Strauch 

Thanks for the information.

The solution you have suggested, unfortunately it is not working with the requirement that I have started.

 

Delta sync is a process of synchronizing contacts after a certain period of time. This period is determined by the last sync performed using the GET API of klaviyo and identified through the "since_last_changed" query parameter.

For example, let's say the last sync was performed on November 21, 2023, at 10:00 am, and the next sync is scheduled for November 21, 2023, at 11:00 am. If a contact is created or updated during this time, only that specific contact will be synchronized with platform.

Thanks


Kim Strauch
Klaviyo Employee
Forum|alt.badge.img+9
  • Klaviyo Employee
  • 91 replies
  • Answer
  • December 6, 2023

I see. So you’re looking to get all of the profiles that have been created or updated that belong to a single list and sync that over time? Can you confirm if my understanding of what you’re trying to do is correct?

You can filter on `updated_at` on the Get Profiles API. Would that work for you? Or does it need to specific to those who are members on a particular list? Can you share more details on how you’re using these profiles so I can better understand the use case and ideal solution?


Devphoenix
Active Contributor II
Forum|alt.badge.img+3
  • Author
  • Active Contributor II
  • 17 replies
  • January 11, 2024

@Kim Strauch 
I see. So you’re looking to get all of the profiles that have been created or updated that belong to a single list and sync that over time? Can you confirm if my understanding of what you’re trying to do is correct?

Yes.

May you please share the CURL for it.