Unable to use Confluence Cloud REST API

Anastasis Berdelis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 16, 2024

I'm unable to access the Confluence Cloud REST API. I always get the same error using postman.

This is the request I've been using:

Request: GET 'https://domain.atlassian.net/wiki/api/v2/spaces' 
Basic Auth: email:api_token

 

This is the response I've been getting:

{
    "errors": [
        {
            "status": 404,
            "code": "NOT_FOUND",
            "title": "Not Found",
            "detail": null
        }
    ]
}

 

When I try the same url using a browser (where I am already signed in), I am getting the correct response as expected.

1 answer

0 votes
Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 16, 2024

Hello @Anastasis Berdelis 

If you are trying to fetch your Confluence spaces, it won't work, because this API was deprecated.

Anastasis Berdelis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 16, 2024

Why is it deprecated? When I'm using it through the browser I am getting the correct result.

I believe the problem lies on the authentication step when making requests through postman. I get the same error when using an incognito window using the same url.

Suggest an answer

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

Atlassian Community Events