Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi, I'm tryingt to list the contents of the root folder. It was returning fine for a while and now it's suddenly stopped return anything? I had one file in there, and I added a couple more to test but it's still returning empty.
Would appreciate any help. Request and response below.
Request
curl -X POST https://api.dropboxapi.com/2/files/list_folder \
--header "Authorization: Bearer <my-oauth-token>" \
--header "Content-Type: application/json" \
--data "{\"path\": \"\",\"recursive\": true,\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false,\"include_mounted_folders\": true}"
Response
{"entries": [], "cursor": "<cursor>", "has_more": false}
Can you double check that there are still entries to list in the relevant account, e.g., via the web site? Make sure you didn't accidentally delete the contents in the Dropbox folder (or in the relevant app folder, if you're using an app with the "app folder" permission).
If there are definitely active entries that should be returned, please open an API ticket with details (e.g., user ID, app name, and a screenshot of the items if possible) so we can look into it. Thanks in advance!
Thanks for your reply Greg.
It started working again after a few hours. There were files in there and it just started replying with metadata for them. Not sure what happened there?
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!