What is the unique reference id of the dynamic content macro that we can use to load the previous data of our app

How can i get the unique reference of the dynamic content macro app in confluence Cloud connect app?

I know there is something called as MacroId as a Unique reference to a particular app, but whenever I’m reloading the page for the first time, it’s changing, and then it remains the same forever, it doesn’t matter how many times I refresh or publish the page.

Is there some way of getting unique reference to a dynamic content macro?

If there is, What is that unique reference that we can store to get the previous data when the page is published or reloaded.

I would appreciate your quick response.
Thank You.