Forum Discussion

Sramarao N's avatar
Sramarao N
Explorer | Level 3
5 years ago

API Token Expiration

Hi,

 

We created the app for generating an access token for API access. I have few doubts on them.

  1. Does the token expire when generated from the App (which is created from account which holds Team admin access)?
  2. If we create multiple Apps and generate multiple tokens from each App, so will all those work with the API calls? How does this work? Please explain.

I have created three different Apps and generated different tokens from each one of App in no particular time intervals for Testing. All of them are working (explains example for my above question).

Please suggest.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    1. Dropbox access tokens don't expire, but users, team admins, or apps can revoke an access token at any point in time.

    2. Creating multiple apps and access tokens is fine. You can own and use multiple apps, as well as create multiple access tokens for any app, without issue.

    • Sramarao N's avatar
      Sramarao N
      Explorer | Level 3

      Thanks for the reply !

      I see you have mentioned Users can revoke access token, dont they have to hold any privilages to revoke the access token?

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        For "Dropbox API" apps, which are "user-linked", the app gets connected to specific Dropbox accounts, via the user's own authorization. The user can unlink these apps themselves.

        For "Dropbox Business API" apps, which are "team-linked", the app gets connected to entire Dropbox Business teams, which can only be done via authorization from a team admin. Only team admins can unlink these apps.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 14 hours ago
217 Following

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!