cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dropbox V2 AccessToken length

Dropbox V2 AccessToken length

rajul_texas
Explorer | Level 3
Go to solution

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? 

 

Reason we ask, once we have updated the information in our database we would want to verify later if it is already migrated or not.

 

Thanks,

- Rajul

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
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.)

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution
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.)
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?