cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

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: 
Highlighted

API 1 vs API 2

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
Highlighted

Re: API 1 vs API 2

Dropboxer
Dropboxer

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"

 

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?