Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
JimRobinson
8 years agoExplorer | Level 4
password protected file via API
I have been unable to download a password protected file using the API, even with the API explorer. Specifically the endpoint /get_shared_link_file fails with the following message
curl -X POST https://content.dropboxapi.com/2/sharing/get_shared_link_file \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Dropbox-API-Arg: {"url":"https://www.dropbox.com/s/OURFILE?dl=0","link_password":"aidenlab"}'
The error is
{ "error_summary": "shared_link_access_denied/..", "error": { ".tag": "shared_link_access_denied" } }
Same link and password work fine with the file metadata endpoint. Please help, this is a critical function. I am evaluating Dropbox for a potential medical application and files must be password protected.
4 Replies
- Greg-DB8 years ago
Dropbox Community Moderator
Thanks for the report! We're looking into it.
By the way, I redacted it from your post, but for the sake of security, you should disable that access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:
https://www.dropbox.com/account/connected_apps
Or, you can disable just this access token using the API:
https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke - JimRobinson8 years agoExplorer | Level 4Oh thanks, should have deleted that. It was a generated token from the API explorer.
I can send you a link to the actual password protected file I was trying to access if that is helpful, it does not contain any sensitive information. - Greg-DB8 years ago
Dropbox Community Moderator
Thanks! I believe we have enough information, but I'll let you know if we need anything else. - Greg-DB6 years ago
Dropbox Community Moderator
This issue with calling /2/sharing/get_shared_link_file with a password is now fixed and should be working properly.
Apologies for any inconvenience this may have caused, and thanks again for bringing this to our attention.
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!