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: 

404 While getting Confluence Endpoint

ClicData
September 21, 2023

Hello,

 

I Get a 404 error when I call confluence endpoints.

Here the request URL:

https://api.atlassian.com/ex/confluence/{CloudID}/wiki/rest/api/content

The id written comes from the https://api.atlassian.com/oauth/token/accessible-resources endpoint.,  already used this ID with other Atlassian endpoints (ex: Jira Software Cloud, etc...) and it worked good.

 

Here is the response I get by using this URL:


{
"timestamp": "2023-09-21T09:54:27.984629Z",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/ex/confluence/7e2d94a9-d7fc-49e8-b071-6380d026cd8f/wiki/rest/api/content"
}


 

And this is the response header :


date: Thu, 21 Sep 2023 09:54:27 GMT
content-type: application/json
content-length: 192
x-trace-id: 871de60d656a9f5b
x-failure-category: FAILURE_CLIENT_TCS
x-frame-options: SameOrigin
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
atl-traceid: 871de60d656a9f5b
report-to: {"endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net"}], "group": "endpoint-1", "include_subdomains": true, "max_age": 600}
nel: {"failure_fraction": 0.001, "include_subdomains": true, "max_age": 600, "report_to": "endpoint-1"}
strict-transport-security: max-age=63072000; preload
server: AtlassianEdge


 

Any idea if I use the good URL or is there is another problem ?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Andrii Maliuta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 21, 2023

Hello @ClicData ,

Could you please clarify what exactly endpoint and for what data retrieval should be used?

The '/rest/api/content' endpoint is used with: 

https://<name>.atlassian.net/wiki/rest/api/content

 For the content retrieval , not authenticating.

ClicData
September 21, 2023

Hello,

Thank you for your fast answer.

We want to get contents as described at https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-get

 

And we also want to retrieve contents in order to see views/viewers using these endpoints: 

wiki/rest/api/analytics/content/{ContentId}/views
wiki/rest/api/analytics/content/{ContentId}/viewers

Like Andrii Maliuta likes this
ClicData
September 21, 2023

We found the solution,

Our trial was expirated, that's why we could call the API anymore. 

 

Thank you !

Like Andrii Maliuta likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events