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
Cloud. You can also see that the version will be >1000 for Jira Cloud.
It works, fantastic!