Text element value loading and synchronization

Hey, Figma team!

We want to synchronize text values for buttons, headings, etc between our app and Figma file with following logic: if button text value is changed in Figma file, text value should be updated in app. Text values would be stored in our data base.
Are there any suggestions or strategies from your side how to do it via Figma REST API and how to manage text elements to support such mapping?
Thanks in advance.

Best Regards,
Rodion Lezhnyuk.