cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more 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 Token: Access token is for an invalid team

Dropbox for Business Token: Access token is for an invalid team

Gavin O.2
New member | Level 1

Hello!

I'm writing an app against Dropbox APIs but I am struggling to authenticate.

I have created an app in the App Console.

  • App type: Dropbox for Business
  • Permissions: Team member file access (I have also tried Team member management)

I then pressed the "Generate" token button to begin testing my app.
Whenever I attempt to integrate with any Dropbox API I receive the following message in the response:

401 -> {"error": "Access token is for an invalid team"}

My request as observed in Fiddler

POST https://api.dropboxapi.com/1/delta?path_prefix=/ HTTP/1.1
Authorization: Bearer <TokenCopiedFromAppConsole>
Content-Type: application/json
host: api.dropboxapi.com
accept: application/json
content-length: 0

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

 

Could someone shed some light on this?

Am I doing something wrong? Is there an issue with the API?

Many Thanks

5 Replies 5

Greg-DB
Dropbox Staff

This error occurs if the team you're on is no longer active, so it sounds like your team was deactivated at some point.

Gavin O.2
New member | Level 1

hi Gregory,

Thanks for your response.

is this an issue with our account or something I can simply fix from our dashboard?

Many Thanks

Greg-DB
Dropbox Staff

I'm afraid that's outside the scope of API support, so I can't offer much insight there. You should check with Dropbox for Business support ( https://www.dropbox.com/support ) or an account manager or admin for your team.

Samantha W.4
New member | Level 1

I'm experiencing the same issue. Dropbox for Business app gets an invalid_access_token when it requests uri: https://api.dropboxapi.com/2/users/get_current_account 

But regular Dropbox app works perfectly.

Greg-DB
Dropbox Staff

Samantha, your question seems to be about a different endpoint and a different error message, so please open a new thread with the full details (e.g., your code and the full error response body) so we can help you without spamming anyone else on this thread. Thanks!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Samantha W.4 New member | Level 1
  • User avatar
    Gavin O.2 New member | Level 1
What do Dropbox user levels mean?