cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Not happy with your Spotify Wrapped? Check out how Kevin on the Dropbox team used Paper to make sure he keeps discovering new music over 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: 
1
Ask
2
Reply and help

Dropbox for Business API Invalid Access Token

Dropbox for Business API Invalid Access Token

Samantha W.4
New member | Level 1

I'm writing an .Net app but I'm not able to authenticate with a Dropbox for Business app.

I have created an app in the App Console.

  • App type: Dropbox for Business
  • Permissions: Team member file access

I then pressed the "Generate" token button to begin testing my app.

I'm using the eaxmples from dropbox-sdk-dotnet hosted on GitHub

When I attempt to run the SimpleTest program, I receive the following message in the response:

The same API request works fine if I use a regular  'Dropbox API' app instead and follow the above steps.

I also tested this on the Dropbox API Explorer site and I get the following error with the Dropbox for Business App.

But it works successfully for the regular Dropbox App.

Is there a step I'm missing for to get the Dropbox for Business application to work properly?

1 Reply 1

Re: Dropbox for Business API Invalid Access Token

Greg-DB
Dropboxer

Thanks for the details Samantha! The Dropbox API Explorer is built for Dropbox API apps, not Dropbox Business API apps, and there is one additional thing that is required for Business apps like yours that the Explorer doesn't do. Specifically, when calling non-team endpoints, such as /users/get_current_account, you need to specify an additional header to indicate which team member to act on. You can find the information on this here:

https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access

You can use the Explorer to build some sample code, but then you'll need to modify it to add the extra header and run it outside the Explorer.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?