cancel
Showing results for 
Search instead for 
Did you mean: 

API endpoint for list of folder names and paths?

SOLVED
72 Views
2 Comments
1 Kudo
Highlighted
TAP
Level 4

API endpoint for list of folder names and paths?

Is there an endpoint that will return a list of folder names and paths? Use-case: presenting my users with a dropdown containing various folders they may send a file to.

1 Accepted solution

Accepted Solutions
Solution
Dropboxer

Re: API endpoint for list of folder names and paths?

Yes, to list files and folders in Dropbox, you should use the /2/files/list_folder[/continue] endpoints:

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue

To list root, use the empty string "" as the path. To list a non-root path, pass in the path like "/path/to/folder".
2 Replies
Solution
Dropboxer

Re: API endpoint for list of folder names and paths?

Yes, to list files and folders in Dropbox, you should use the /2/files/list_folder[/continue] endpoints:

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue

To list root, use the empty string "" as the path. To list a non-root path, pass in the path like "/path/to/folder".
TAP
Level 4

Re: API endpoint for list of folder names and paths?

Thanks Greg!