# I got error while using attachment upload API

**URL:** <https://community.hubspot.com/t/i-got-error-while-using-attachment-upload-api/87893>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [August 21, 2023, 7:20am UTC](https://community.hubspot.com/t/i-got-error-while-using-attachment-upload-api/87893 "2023-08-21T07:20:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AkshayDobariya](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@AkshayDobariya](https://community.hubspot.com/u/AkshayDobariya)\
**Post date:** [August 21, 2023, 7:20am UTC](https://community.hubspot.com/t/i-got-error-while-using-attachment-upload-api/87893/1 "2023-08-21T07:20:09Z")

</div>

ApiException [Error]: HTTP-Code: 403  
Message: An error occurred.  
Body: {“status”:“error”,“message”:“This app hasn’t been granted all required scopes to make this call. Read more about required scopes here: [https://developers.hubspot.com/scopes.",“correlationId”:“xxxxxxxx”,“errors”:\[{“message”:"All](https://developers.hubspot.com/scopes.%22,%22correlationId%22:%22xxxxxxxx%22,%22errors%22:%5C%5B%7B%22message%22:%22All) of the following scopes are required.”,“context”:{“requiredScopes”:[“files”]}}],“links”:{“scopes”:“[https://developers.hubspot.com/scopes"},“category”:"MISSING\_SCOPES](https://developers.hubspot.com/scopes%22%7D,%22category%22:%22MISSING%5C_SCOPES)”}

I already added files scope but still I got missing\_scope error

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [August 21, 2023, 8:39am UTC](https://community.hubspot.com/t/i-got-error-while-using-attachment-upload-api/87893/2 "2023-08-21T08:39:00Z")

</div>

Hi @AkshayDobariya

If you authorised your App, then added a scope later, you will need to reautorise the App to give it permission to use the added scopes.

Is that what happened?

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of [Webalite](https://www.webalite.com?utm_campaign=community-forum&utm_source=community&utm_content=signature) a HubSpot Partner Agency based in Wellington, New Zealand and the founder of **Portal-iQ** the world’s first automated [HubSpot Portal Audit](https://portal-iq.com?utm_campaign=community-forum&utm_source=community-forum&utm_content=signature) that helps you work smarter with HubSpot.

---

<div class="post-metadata">

**Author:** ![AkshayDobariya](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@AkshayDobariya](https://community.hubspot.com/u/AkshayDobariya)\
**Post date:** [August 21, 2023, 9:48am UTC](https://community.hubspot.com/t/i-got-error-while-using-attachment-upload-api/87893/3 "2023-08-21T09:48:11Z")

</div>

I already reauthorized the app, but I got the same error.

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [September 1, 2023, 6:44am UTC](https://community.hubspot.com/t/i-got-error-while-using-attachment-upload-api/87893/4 "2023-09-01T06:44:59Z")

</div>

Sorry for the delay @AkshayDobariya

Are you uploading the file using the Forms API or the Engagements API?

This [page about Scopes](https://developers.hubspot.com/docs/api/working-with-oauth#scopes) may help?

Have fun

Mike
