How to get cloudId from Confluence Cloud for a Connect app

We need a reliable site identifier in order to match Jira and Confluence installed on the same site. cloudId seems to be that identifier.
We know that for Jira Cloud, we can make a request to https://<baseUrl>/_edge/tenant_info and get it. What is the way to do it for Confluence Cloud?