2025 sparked some incredible conversations across our community 👩💻. Discover the highlights and see what’s ahead in 2026.
Forum Discussion
Kuki
6 years agoExplorer | Level 4
Unable to fecth files and folders from Team folders
I am using the Dropbox Business API and trying to fetch Folders and Files present into my team folder (If you will see I have created a "General Information" folder) (The folder which is out side of ...
- 6 years ago
The exact number of entries you get back per /2/files/list_folder[/continue] page is not guaranteed. Sometimes the API may return more entries per page, and sometimes it may return fewer.
Regardless of how many entries were returned, your app needs to always check the 'has_more' value and call back for more entries if it's 'true'.
Kuki
6 years agoExplorer | Level 4
Thank You for your reply: Please see my code and process I followed below:
1. STEP1: First I tried to find the the namespace ID's of the folder I have creared. I got the following output when I executed the API:
https://api.dropboxapi.com/2/team/namespaces/list
[namespaces] => Array
(
[0] => Array
(
[name] => Your team's shared workspace
[namespace_id] => 6131728736
[namespace_type] => Array
(
[.tag] => team_folder
)
)
[1] => Array
(
[name] => Sales
[namespace_id] => 6131729056
[namespace_type] => Array
(
[.tag] => shared_folder
)
)
[2] => Array
(
[name] => Custom_team_folder
[namespace_id] => 6512687312
[namespace_type] => Array
(
[.tag] => shared_folder
)
)
-----------------------------------------------------------------------------------------------
2. STEP2: Then I call this API https://api.dropboxapi.com/2/files/list_folder and passed the Namespace Id "6512687312" into my code, to get the list of files and folder present into the "Custom_team_folder" .
But I got this error:
"Operation completed without any errorsError in call to API function "files/list_folder":
This API function operates on a single Dropbox account, but the OAuth 2 access token you provided is for an entire Dropbox Business team. Since your API app key has team member file access permissions, you can operate on a team member's Dropbox by providing the "Dropbox-API-Select-User" HTTP header or "select_user" URL parameter to specify the exact user."
Could I know How can I solve this error, why I am getting this error
This is My code: I used CURL using PHP:
<?php
$data = array("path"=>'');
$payload = json_encode($data);
$ch = curl_init('https://api.dropboxapi.com/2/files/list_folder');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,$payload);
$headers = array(
'Content-type: application/json',
'Dropbox-API-Path-Root: {".tag": "namespace_id", "namespace_id": "6512687312"}',
'Authorization: Bearer <REDACTED>',
);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
if(curl_exec($ch) === false)
{
echo 'Curl error: ' . curl_error($ch);
}
else
{
$result_file_names = curl_exec($ch);
echo 'Operation completed without any errors';
}
print_r($result_file_names);
curl_close($ch);
exit;
?>
Please see the screen shot for more reference:
----------------------------------------------------------------------------------------------------
I hope I will get the solution now.
Revzo
5 years agoNew member | Level 2
The third package cannot be used because it does not integrate the business model. Use endpoints.
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!