Not sure how to implant "Pagination ID / Cursor" for a sync module

I’m building a trigger and the distant api give me some sort of “sync” call with a “cursor” that I can keep to make sure the next time I trigger the “sync” call we are on the same page.

How do I keep the “cursor” variable that will change after each call?