Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

404 While getting Confluence Endpoint

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

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 Leaders.
Sep 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.

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

We found the solution,

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

 

Thank you !

Like Andrii Maliuta likes this

Suggest an answer

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

Atlassian Community Events