Learn how to make the most out of the Dropbox Community here 💙. 

Forum Discussion

rajul_texas's avatar
rajul_texas
Explorer | Level 3
8 years ago
Solved

Dropbox V2 AccessToken length

Hi,    Is there a way to tell that an access token is Dropbox V2 format compliant? Perhaps by looking at the length of the accessToken or if the tokenUid is a number? Or is there a better way?  ...
  • Greg-DB's avatar
    8 years ago
    Hi Rajul, Dropbox API access tokens aren't directly tied to API version exactly. Dropbox API access tokens are tied to OAuth version.

    For reference, Dropbox API v1 supports both OAuth 1 and OAuth 2. Dropbox API v2 supports only OAuth 2.

    We don't have documented guarantees on the exact format of either (e.g., for length), but the easiest way to tell them apart is by the number of parts. That is, OAuth 1 access tokens come in two pieces, a key and secret. OAuth 2 access tokens only have one piece.

    Any given OAuth 2 access token can be used on both API v1 and API v2, as long as the app itself is supported on the API version. (For example, API v2 happens to not support the "file type" permission.)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,965 PostsLatest Activity: 11 hours ago
360 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!