Issue with Accessing Media via the Confluence REST API

Mariem MOUKHLISSI
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 26, 2024

Hi, 

We have created a user manual on Confluence in a non-public folder. We want to use the REST API to display this content on our website. We successfully generated the token for using the API and managed to retrieve the text. However, we encountered difficulties in retrieving the photos and videos that we added to the documentation. When using the REST API requests, we only receive links to the media, but these links are only accessible with the token, which has prevented us from displaying them correctly. Do you have any solutions to help us resolve this issue?

Thank you

1 answer

0 votes
marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 26, 2024

Hi @Mariem MOUKHLISSI ,

One solution to the problem could be to use a proxy server.  The proxy can add the token to the requests, without exposing the token to the client.  However this also has security implications.

Mariem MOUKHLISSI
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 28, 2024

@marc -Collabello--Phase Locked-  Thank you for your response! Could you please provide more details on how to add the token to the proxy configuration? 

marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 29, 2024

You would need to run your own proxy server and rewrite the URLs.  This really depends on the proxy server you have, and what security rules you have.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events