We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
JoshA
5 years agoNew member | Level 2
Can't download a folder shared with me with API.
I'm trying to download files in a folder that was created by another user and shared with the group.
As I don't own the folder I can't seem to use any of the API calls under /files/
This also...
- 5 years ago
You can use the API to access anything in the connected account that the account has access to and has mounted. The connected account doesn't need to be the owner.
Using the /2/files/list_folder[/continue] endpoints is the right way to list the contents of any particular path, and then you can use /2/files/download to download any needed file, or /2/files/download_zip to download an entire folder.
In this particular case, it sounds like the folder may be in the "team space". Note that by default, API calls operate in the "member folder" of the connected account, not the "team space", so anything outside the member folder will not be found by default. You can configure API calls to operate in the "team space" instead though. To do so, you'll need to set the "Dropbox-Api-Path-Root" header. You can find information on this in the Team Files Guide.
Greg-DB
Dropbox Community Moderator
5 years agoYou can use the API to access anything in the connected account that the account has access to and has mounted. The connected account doesn't need to be the owner.
Using the /2/files/list_folder[/continue] endpoints is the right way to list the contents of any particular path, and then you can use /2/files/download to download any needed file, or /2/files/download_zip to download an entire folder.
In this particular case, it sounds like the folder may be in the "team space". Note that by default, API calls operate in the "member folder" of the connected account, not the "team space", so anything outside the member folder will not be found by default. You can configure API calls to operate in the "team space" instead though. To do so, you'll need to set the "Dropbox-Api-Path-Root" header. You can find information on this in 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!