Hi Community,
We are implementing OAuth 2.0 for our Jira Connector (Smartsheet) and need a reliable way to determine the Jira deployment type (Cloud vs Data Center) when only the hostUrl is available.
-
Initial approach: We checked if the
hostUrlcontainedatlassian.netto detect Cloud. -
Issue: Jira Cloud can also run on custom domains, so this check isn’t reliable.
-
Current approach: We are using
GET /rest/api/3/serverInfoas it provides deployment information.
In our testing across multiple Jira Cloud instances, this endpoint responded successfully without requiring authentication. However, the documentation mentions it may return 401 Unauthorized.
We would like clarification on the following:
-
Is
/rest/api/3/serverInfoconsidered a public unauthenticated API for Jira Cloud? -
Under what conditions would it return
401 Unauthorized? -
Is there an alternative or recommended way to reliably determine deployment type given only a Jira
hostUrl?
This will help us handle edge cases more effectively in our integration