Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Deleted user 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 Champion
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