Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Samantha W.4's avatar
Samantha W.4
New member | Level 1
10 years ago

Dropbox for Business API Invalid Access Token

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

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    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.

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!