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

Render embedded images with Confluence with REST API

I'm using the following api to get page content to display in our website.


I'm able to retrieve the html but the images aren't displaying. Is this a bug or do I need to make an extra api call order to render the images? 

1 answer

1 accepted

I found that the images would appear when logged into my Confluence site. I enabled anonymous access for the space that I was trying to get the images from and it's working now. I did have to modify src="" in the <img> element by adding the base url name in front of the source url. Another option is to use basic authentication in the URL, as explained in
To use the basic authentication with rest API, you will have to insert the following parameters:
Replace the internal-admin and the mypassword for the correct information.

If you don't authenticate against Confluence, the content won't be shown as the source of the image is still pointing to Confluence URL.

Suggest an answer

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

Introducing Confluence Cloud and Jira Software Cloud Premium

Wherever you are in your team’s journey , our goal is to support your big ambitions. We’re a cloud-first company with the mission of unleashing the potential of every team, and to address the range ...

582 views 4 17
Read article

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