Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

408 views 23 8
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