Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
sreeraj
8 years agoExplorer | Level 3
How to list the contents of a team folder?
I am using dropbox business account and API v2.0. I have team folder with many subfolders and files in it. When I call the api /team_folder/list I get the name of the team folder. But how do I get li...
- 8 years agoIn order to list the contents of a folder, such as a team folder, you should use /2/files/list_folder[/continue]:
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue
Note that this is a user endpoint, so if you have a Business API app, you'd need to have the "team member file access" permission and use the "member file access" feature:
https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access
We don't have an official PHP SDK for Dropbox API v2, but you can use a third party library:
https://www.dropbox.com/developers/documentation/communitysdks
Or, you can call the HTTPS endpoints themselves, as you have been:
https://www.dropbox.com/developers/documentation/http/documentation
Greg-DB
Dropbox Community Moderator
8 years agoIn order to list the contents of a folder, such as a team folder, you should use /2/files/list_folder[/continue]:
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue
Note that this is a user endpoint, so if you have a Business API app, you'd need to have the "team member file access" permission and use the "member file access" feature:
https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access
We don't have an official PHP SDK for Dropbox API v2, but you can use a third party library:
https://www.dropbox.com/developers/documentation/communitysdks
Or, you can call the HTTPS endpoints themselves, as you have been:
https://www.dropbox.com/developers/documentation/http/documentation
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue
Note that this is a user endpoint, so if you have a Business API app, you'd need to have the "team member file access" permission and use the "member file access" feature:
https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access
We don't have an official PHP SDK for Dropbox API v2, but you can use a third party library:
https://www.dropbox.com/developers/documentation/communitysdks
Or, you can call the HTTPS endpoints themselves, as you have been:
https://www.dropbox.com/developers/documentation/http/documentation
msullybos
5 years agoExplorer | Level 3
For files/list_folders, can you use the team_folder_id in place of the path?
Thanks
- Greg-DB5 years ago
Dropbox Community Moderator
msullybos Yes, the /2/files/list_folder endpoint supports namespace ID paths in the 'path' parameter, so you can use the team_folder_id for a team folder as the 'path' value, like "ns:123456789", where 123456789 is the team_folder_id. (For information on how to interact with a team space though, refer to the Team Files Guide.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!