API call to detect hosted versus cloud

Hi there. Is there an API call that I can use to detect whether the endpoint is associated with a hosted versus the cloud.

If you are interested in REST API then you can use /rest/api/2/serverInfo and check if deploymentType is Cloud. You can also see that the version will be >1000 for Jira Cloud.


It works, fantastic!