Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
rajul_texas
9 years agoExplorer | Level 3
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?
...
- 9 years agoHi 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.)
Greg-DB
Dropbox Community Moderator
9 years agoHi 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.)
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
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!