Get Sync File/Folder Status from an external SaaS software with NextCloud API (cURL)

We are building an app which interacts with a NextCloud instance via APIs.
We would like to get easily the sync file/folder status of a file/folder on NextCloud thanks to a get call (sync completed, in progress, in pause, - almost like described on this page for the NextCloud client:
Is that possible? If yes, how? (cURL examples would be perfect)