I got error while using attachment upload API

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 of the following scopes are required.”,“context”:{“requiredScopes”:[“files”]}}],“links”:{“scopes”:“https://developers.hubspot.com/scopes"},“category”:"MISSING\_SCOPES”}

I already added files scope but still I got missing_scope error

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 a HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world’s first automated HubSpot Portal Audit that helps you work smarter with HubSpot.

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

Sorry for the delay @AkshayDobariya

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

This page about Scopes may help?

Have fun

Mike