Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.

Forum Discussion

Gavin O.2's avatar
Gavin O.2
New member | Level 1
10 years ago

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

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

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

    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's avatar
    Gavin O.2
    New member | Level 1
    10 years ago

    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's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    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!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,038 PostsLatest Activity: 6 years ago
415 Following

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 or Facebook.

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!