# Using Upload API

**URL:** <https://forum.builder.io/t/using-upload-api/3482>\
**Category:** Technical Questions\
**Tags:** upload-api, images, files\
**Created:** [April 13, 2023, 10:52am UTC](https://forum.builder.io/t/using-upload-api/3482 "2023-04-13T10:52:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [July 13, 2023, 3:20am UTC](https://forum.builder.io/t/using-upload-api/3482/3 "2023-07-13T03:20:23Z")

</div>

Hello @hafiz,

I see you are using a public API key for the Bearer token which isn’t going to work, you will need to generate a private key and use that. You can refer to the below forum post for help on generating private key

> [@Create Private Pages that are accessible only after authorization](https://forum.builder.io/t/create-private-pages-that-are-accessible-only-after-authorization/58/2):
>
> Howdy @yashu, welcome to the forum! You can do this using a recently added model setting called public readable. You can go over to [builder.io/models](http://builder.io/models) and choose your model and hit show more options under model settings and then find the public readable option and turn that off and save your model, e.g. perhaps make a new private-page model of page type with this setting switched off Note that this model option is currently only live on [beta.builder.io](http://beta.builder.io) but will be in the production [b…](http://builder.io)

---

_[View the full topic](https://forum.builder.io/t/using-upload-api/3482)._
