Confluence global permissions via API?

Is there a confluence cloud API that provides the global permissions of the confluence instance? I want to determine via the API whether the permission to grant anonymous access has been enabled

Thanks!