For Sharepointonline (SPOnline CSOM 16.1 ver), we were able to get labels using CompliancePolicy.SPPolicyStoreProxy::GetAvailableTagsForSite api. These calls will not work for Onpremisis(SP2019).
Do we have any Apis for SP OP? Using SP2019 CSOM version(16.0) has no related apis to get labels. Cant find any documentation for onpremisis around labels/retention. Everything is talking abt online.
Also, should the above complaince API even be used for Online? as this below post suggests it should not be used from API.
https://techcommunity.microsoft.com/t5/microsoft-sharepoint-blog/scripted-application-of-data-governance-labels/ba-p/242412 (under commnets section)