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

Hi!
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: https://docs.nextcloud.com/desktop/2.3/navigating.html).
Is that possible? If yes, how? (cURL examples would be perfect)
Thanks!