cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

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: 

Token Confusion

Highlighted

Token Confusion

New member | Level 2

So I am connecting to PowerBi using the token.  When I use the token created at:  https://dropbox.github.io/dropbox-api-v2-explorer/#files_download with the "Get Token" function inside my PowerBI call it works great.

 

When I put in the access token generated from my App on https://dropbox.github.io/dropbox-api-v2-explorer/#files_download it fails with the error: 

{
  "error_summary": "path/not_found/.",
  "error": {
    ".tag": "path",
    "path": {
      ".tag": "not_found"
    }
  }
}

 

Similarly when I go to Power BI it fails since the token clearly isn't being accepted with the call.

 

Any insight as to why this token doesn't work would be appreciated!  I need a non-expiring token for my datasets to refresh in my reporting.

1 Reply 1
Highlighted

Re: Token Confusion

Dropboxer

It sounds like your own app is probably registered for the "app folder" access type, while the API v2 Explorer has the "full Dropbox" access type. Apps with the "app folder" access type can only access the contents of the special app folder created for them (by default at "/Apps/<app name/" for accounts using the English locale). You can find more information on this here. You can check the access type for your app on the App Console.

 

Since API calls using access tokens for apps with the app folder access type are rooted inside the app folder, attempting to access a file at a path outside the app folder will fail.

 

You should either just reference items inside the app folder, using a path relative to the app folder, or, if you need to access any location in your account, you should instead register an app with the "full Dropbox" access type.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?