Getting MISSING_SCOPE files error

Hello everyone
I have a query related to this API https://api.hubapi.com/files/v3/files.

I got the error “MISSING_SCOPES” while using this API https://api.hubapi.com/files/v3/files.

I checked the Auth token scope with this https://api.hubapi.com/oauth/v1/access-tokens/{token} and got the below response
"{
“token”: “CP6Z-_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxVZL7XtKA25hMVIAWgA”,
“user”: “xxxxxxxxxxxxxxxxxxxx”,
“hub_domain”: “app.com”,
“scopes”: [
“oauth”,
“files”,
“tickets”,
“files.ui_hidden.read”
],
“hub_id”: xxxx,
“app_id”: xxx,
“expires_in”: 1166,
“user_id”: xxxxxxxxxxxx,
“token_type”: “access”
} "

Hi, @AkshayDobariya :waving_hand: Thanks for reaching out. I have a few questions to help the community understand your issue better.

Have you tried:

  • Creating a Private App with the equivalent scopes and using it for your auth method? For testing purposes?
  • Have you tried removing the scopes from your Public App and then adding them back? Or creating a new test app with only the needed scopes? To test with?
  • For the portal you’re trying to use your Public App with, are you a super admin in that portal?

Thanks! — Jaycee