cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Dropbox for Business API Invalid Access Token

New member | Level 1
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
Highlighted

Re: Dropbox for Business API Invalid Access Token

Dropboxer
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.

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?