cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you’ve changed your email address, now's the perfect time to update it on your Dropbox account and we’re here to help! Learn more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I no longer have full access with my API

I no longer have full access with my API

hmoraisalmeida
New member | Level 2

Hi,

 

I used to have a project where I had full access to dropobx API.

 

I am changing the dropbox account to this one (<email address redacted>) but my program is no longer running.

I see that dropbox acess has changes from "full" to "scope". I've chosen a few scopes, but I keep getting the error:

required_scope = 'files.metadata.read', even though I have already chosen that scope. 

 

Please help me, as this is the final stage of a very long project, and it was working perfectly with another dropbox account.

1 Reply 1

Greg-DB
Dropbox Staff

As you mentioned, Dropbox has introduced new "scopes" functionality, to enable more granular permissions for API apps. You can find more information on this in our blog post.

 

Using the new scopes functionality is currently optional. You can still create non-scoped ("legacy") apps if you wish, and existing non-scoped apps continue to function as before.

 

If you have switched to scopes though, note that the scopes you enable for your app on the App Console are just the maximum set of scopes that your app will be able to use. Any specific access token for your app may have all or only some of those scopes. Also, if you enable more scopes for your app, that won't retroactively add those scopes to access tokens that already exist.

 

So, if you're getting a 'missing_scope' error like this, that indicates that the access token you're using to make the API call doesn't have the necessary scope for calling that endpoint. In this case, the necessary scope is 'files.metadata.read', as indicated by the 'required_scope'. You'll need to retrieve another access token with the necessary scope and use that instead. You can find information on how to do so in the OAuth Guide and authorization documentation.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?