Relationship between Atlassian site and CloudId


We get a cloudId for every Atlassian site a user has access to whne we make calls to If the user has access to both Confluence and Jira, the cloudId appears to be the same. I have a couple of questions regarding this:

  1. Is this cloudId fixed for all products on the site?
  2. If the site is renamed, will cloudId remain the same?
  3. Is it recommended to store the access tokens against the cloudId instead of the site url?


Hi @FatmehShuman ,

The cloudId is fixed for a given tenant so use the cloudId instead of the site URL.


1 Like

Thanks Dugald. So in this case if the user authorizes a site (via OAuth) and the site url changes, can I assume the token will still be valid for that cloudId?