Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

austina's avatar
austina
Explorer | Level 4
5 years ago
Solved

Rest API returns "error_summary": "invalid_access_token/..."

Hi,

Invoking the rest api https://api.dropboxapi.com/2/team/token/get_authenticated_admin 

returns  

{

    "error_summary": "invalid_access_token/...",

    "error": {

        ".tag": "invalid_access_token"

    }

}

response. 

The X-Dropbox-Request-Id is 389d4047b711487286d7682b45b666bd 

Can you please let me know what went wrong? Thanks

  • Yes, if the app is disconnected (also sometimes called "unlinked"), that will revoke the access token(s), and using any such access token will result in that error.

3 Replies

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

    An 'invalid_access_token' error like this should indicate that the access token the client is providing (in the "Authorization" header) is not valid. For instance, it is not an actual access token string, or the access token was revoked.

     

    Are you using a valid access token? I recommend reading the OAuth Guide and Error Handling Guide for reference.

  • austina's avatar
    austina
    Explorer | Level 4
    5 years ago

    I am using an access token that I got from the logs. I don't think it was altered.

     

    The error handling guide mentions that "Dropbox users may revoke API authorizations (as described here)". Will I get this error if a team admin account holder disconnects my app from their dropbox account? 

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

    Yes, if the app is disconnected (also sometimes called "unlinked"), that will revoke the access token(s), and using any such access token will result in that error.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

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!