cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know all about tools for creatives that work seamlessly with Dropbox, like Adobe? Well, check it out right 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: 

How to get the root folder name of dropbox account through API?

How to get the root folder name of dropbox account through API?

akagupta
New member | Level 2

How to get the root folder name of dropbox  account through API?

I can see for basic account it is "Dropbox". When i link it to team account, its "Personal".

For team accounts the name is something else, can i get this info in API?

5 Replies 5

Re: How to get the root folder name of dropbox account through API?

Greg-DB
Dropboxer

You don't need to know the name of the Business team space root in order to operate in it via the API. Please refer to the Namespace Guide for more information:

https://www.dropbox.com/developers/reference/namespace-guide

You can get the team's name from the FullAccount.team field returned by /2/users/get_current_account though:

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

Re: How to get the root folder name of dropbox account through API?

akagupta
New member | Level 2

Hi Greg

This is in case of team account.

What about basic accounts? In case of basic account, I can see the url is https://www.dropbox.com/personal and on the scrren top let i can see the folder as "Personal".dropbox.png

 

Re: How to get the root folder name of dropbox account through API?

akagupta
New member | Level 2

I am working on Dropbox Integration with Adobe Sign. For this, we want to show the user the path from where he has picked the file the path i am getting from the API is not having root folder info. So where will i get the root folder name(Some places i can see it "Personal", "Dropbox" and at other places the team folder name. The team folder name i will be able to get it. But from where to find the home folder name in case of basic accounts?

Re: How to get the root folder name of dropbox account through API?

Greg-DB
Dropboxer

That "Personal" label isn't an actual folder path. It's just the label shown in the UI to help the user identify the account. When using the API to identify files and folders in the account, you don't need to include "Personal" or "Dropbox". For example, a path to a file would just look like "/Getting Started.pdf".

You can identify the type of account from the FullAccount.account_type field returned by /2/users/get_current_account though:

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

If it's "basic" or "pro", that would be labeled "Personal" on the Dropbox web site.

Likewise, you can use FullAccount.root_info to see what kind of root the account has.

Re: How to get the root folder name of dropbox account through API?

akagupta1
Explorer | Level 3

Thanks Greg. The info you shared is really helpful.

Poll
Do you work or study in the creative industry? If so, which area?
If you use Adobe, don't forget to check out our latest integrations update here.
Who's talking

Top contributors to this post

  • User avatar
    akagupta1 Explorer | Level 3
  • User avatar
    Greg-DB Dropboxer
  • User avatar
    akagupta New member | Level 2
What do Dropbox user levels mean?
Need more support?