What do you mean by "subdomain"?
Also, if you want to get something from the API, you need to ask for it by the base url. If you don't know the base url of a Confluence already, you don't know where it is, so you can't ask. Whatever confluence you're trying to talk to, you already have the base url.
Consider following example,
curl --request GET \ --url 'https://your-domain.atlassian.net/wiki/rest/api/audit' \ --header 'Accept: application/json'
I am referring to your-domain.atlassian.net, Is there an API which returns domains for current user.
that, accessible resource API does not return base url. so what is the alternative to that API?
To issue your example call, you have used the base url already. So you know it. It is 'https://your-domain.atlassian.net/wiki .
As for the wider question, what you're really asking is "what services does a particular Atlassian account have access to?". There is no API on Atlassian's services for that because it's illegal for you to get that information.
When you subscribe for Confluence Cloud version, you can choose your domain name so that your Cloud site will be created as with that domain name.
Let's say if you choose, anuja as your domain, your Cloud site will be created with URL: https://anuja.atlassian.net.
Your Cloud URL is the base URL you need to use in the REST API calls. So, in this case https://anuja.atlassian.net becomes Base URL for your REST API calls.
Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events