can we get correct endpoint to get all spaces present in the confluence cloud

Sachin Somannavar
Contributor
March 1, 2024

url = "https://{your-domain}/wiki/api/v2/spaces"    this url is mentioned in the rest api page 

 

tried using this https://api.atlassian.com/wiki/api/v2/spaces

https://api.atlassian.com/ex/confluence/cloudid/wiki/api/v2/spaces

https://api.atlassian.com/ex/confluence/cloudid/rest/api/v2/spaces

 

but did not got the spaces list

 

1 answer

1 vote
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 1, 2024

You are using the wrong domain, it should be the instance URL, not api.atlassian.com. Your URL should look something like this:

https://my-instance.atlassian.net/wiki/api/v2/spaces 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events