The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

which one to use between rest api vs rest api v2

Deleted user
March 5, 2024

url = "https://your-domain.atlassian.net/wiki/rest/api/space"

this is for getting the spaces in rest api

this is the url I am using url = f'https://api.atlassian.com/ex/confluence/cloudid /rest/api/space' and it is working

url = "https://{your-domain}/wiki/api/v2/spaces"

 

if I use this url url = "https://api.atlassian.com/ex/confluence/cloudid/wiki/api/v2/spaces"

this is for getting the spaces in rest api v2 , it is not working , what I am missing in rest api v2 ?

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
marc -Collabello--Phase Locked-
Community Champion
March 6, 2024

`api.atlassian.com` is for OAuth access, `XXXX.atlassian.net` is for Basic Auth access.

That means you need to use the correct url depending on your authentication method.

cweiske
May 15, 2026

Is this officially documented somewhere? I could not find it in the official API docs.

I do have one token that I can use with BasicAuth on api.atlassian.com and get results.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events