cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

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

Highlighted

password protected file via API

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
Highlighted

Re: password protected file via API

Dropboxer
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
Highlighted

Re: password protected file via API

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.
Highlighted

Re: password protected file via API

Dropboxer
Thanks! I believe we have enough information, but I'll let you know if we need anything else.
Highlighted

Re: password protected file via API

Dropboxer

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.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?