cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

password protected file via API

password protected file via API

JimRobinson
Explorer | Level 4

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 4

Greg-DB
Dropbox Staff
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

JimRobinson
Explorer | Level 4
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
Dropbox Staff
Thanks! I believe we have enough information, but I'll let you know if we need anything else.

Greg-DB
Dropbox Staff

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    JimRobinson Explorer | Level 4
What do Dropbox user levels mean?