# Images not accessible with media token

**URL:** <https://community.developer.atlassian.com/t/images-not-accessible-with-media-token/51266>\
**Category:** Confluence Cloud\
**Tags:** auth, image, confluence-cloud, rest-api\
**Created:** [August 24, 2021, 1:32pm UTC](https://community.developer.atlassian.com/t/images-not-accessible-with-media-token/51266 "2021-08-24T13:32:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dineshkumar](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Dineshkumar](https://community.developer.atlassian.com/u/Dineshkumar)\
**Post date:** [August 24, 2021, 1:32pm UTC](https://community.developer.atlassian.com/t/images-not-accessible-with-media-token/51266/1 "2021-08-24T13:32:27Z")

</div>

I’m using the Confluence Cloud REST API `/wiki/rest/api/content/<pageId>` to export Confluence pages to HTML. And using `export_view` for body representation.

When using the `media_token` that is provided in the above API’s response to load images, the image request is returned with `401 Unauthorized` status.

---

<div class="post-metadata">

**Author:** ![SteveJorgensen](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@SteveJorgensen](https://community.developer.atlassian.com/u/SteveJorgensen)\
**Post date:** [May 27, 2022, 9:32pm UTC](https://community.developer.atlassian.com/t/images-not-accessible-with-media-token/51266/2 "2022-05-27T21:32:06Z")

</div>

Did you ever figure this out? I presume I’m supposed to use the token as the value of some HTTP header, but I don’t know what the header name is and don’t see any info in the API documentation about that.
