Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

RandomDoorUser1872's avatar
RandomDoorUser1872
New member | Level 2
5 years ago
Solved

Fail to get a file via curl

Soooo.... this has been driving me nuts for the past day or two. I am sure I am missing something obvious, but I have no other paths forward. So here goes. I have created an app with access to an APP FOLDER. I uploaded a few test files to the folder via GUI. I can list the folder contents via curl using the token I created. When I try to get a file, using the file id from the list_folder endpoint, I get a not found error. Code bellow. Please help!!!

 

curl -X POST https://api.dropboxapi.com/2/files/list_folder \
    --header "Authorization: Bearer <TOKEN>" \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"\"}"

 

...Returns JSON with /App/FOLDER content... 

 

curl -X POST https://api.dropboxapi.com/2/file_requests/get  \
    --header "Authorization: Bearer <TOKEN>" \
    --header "Content-Type: application/json" \
    --data "{\"id\":\"<ID>\"}"

 

Returns: 

{"error_summary": "not_found/...", "error": {".tag": "not_found"}}

???? 

 

 

Thank you! 

About Dropbox API Support & Feedback

Node avatar for 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!