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: 

API 1 vs API 2

API 1 vs API 2

anand19196
Explorer | Level 4

Hi Support,

While I am triying to access the Api  "https://api.dropboxapi.com/2/users/get_account" its shown this site can't be reached.

But i can use this https://api.dropboxapi.com/1/account/info

So please provide the different between this two URLs.

Regards,

Anandaraj

 

1 Reply 1

Greg-DB
Dropbox Staff

API v2 does operate differently than API v1, so the way you call it will be different. The URL https://api.dropboxapi.com/2/users/get_current_account is the right endpoint for getting the user's account information via API v2. You can find the documentation for it here:

 

https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account

 

It requires a POST request, such as seen in the curl example in the documentation there:

 

curl -X POST https://api.dropboxapi.com/2/users/get_current_account \
    --header "Authorization: Bearer ACCESS_TOKEN_HERE"

 

Need more support?
Who's talking

Top contributors to this post

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