cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

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.

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

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