Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

JimRobinson's avatar
JimRobinson
Explorer | Level 4
8 years ago

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

  • JimRobinson's avatar
    JimRobinson
    Explorer | Level 4
    8 years ago
    Oh 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-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    Thanks! I believe we have enough information, but I'll let you know if we need anything else.
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    6 years ago

    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

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!