It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence Rest API Error 404 Edited

Hi I want to get the content of a page via rest api call.

I tried all imaginable combinations of user, password and URI.


curl -X GET -u <email>:<API Token> "<ID>?expand=space"


curl -X GET -u <email>:<PWD> "<ID>?expand=space"


And I tried multiple page ID's. I got the page id by going to Page Info and then used the ID= ... from URL.


I also tried to send a "simple" Https request and added the Authentification to the header. The Http 404 error still occurs. The return header does not contain a Authentication_Failed entry. So I assume that the login has been successful. 



1 answer

Hello @Jannis Koray Köksel do you encode your user and pass to base64?? it happened to me that I haven't paid attention to this:


Supplying basic auth headers

If you need to you may construct and send basic auth headers yourself. To do this you need to perform the following steps:

  1. Generate an API Token for your Atlassian Account:
  2. Build a string of the form
  3. Encode the string using base64.
  4. Supply an Authorization header with content Basic followed by the encoded string. For example, the string user:user encodes to dXNlcjp1c2Vy in base64, so you would make the request as follows:
curl -D- \
   -X GET \
   -H "Authorization: Basic dXNlcjp1c2Vy" \
   -H "Content-Type: application/json" \

the postman integrations its a great start also

hope it helps 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

283 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you