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

Forum Discussion

Ben P.17's avatar
Ben P.17
New member | Level 1
10 years ago

List existing shared links?

Hi

How can I use the API to find existing shared files (not folders)?

I've used the /metadata method to get a list of files and folders and there are no extra fields against files that have a sharable URL. Shared folders of course do have the shared_folder_id field.

Any help would be much appreciated.

Thanks,
Ben

 

5 Replies

Replies have been turned off for this discussion
  • This isn't currently possible through the API, but we'll consider this a feature request.

    To help us prioritize, would you mind telling us about your use case? What would your app do with this information?

  • Ben P.17's avatar
    Ben P.17
    New member | Level 1
    10 years ago

    Hi Steve,

    I'm a Dropbox for Business user - I'm building an admin interface to browse all team member files and need to see what files & folders are being shared.

    Ben

  • The Dropbox for Business audit log does list when shared links are created, so you can sort of reconstruct this. See https://www.dropbox.com/developers/business/docs#log-get-events.

  • Oh, and actually, I had forgotten that this was already added in the API v2 preview on an individual basis: https://www.dropbox.com/developers-preview/documentation/http#documentation-get_shared_links.

    I don't believe API v2 yet supports `Perform-As-Team-Member`, but it will by the time it launches. So then you could make this call for each user on the team to collect all the shared links.

  • Ben P.17's avatar
    Ben P.17
    New member | Level 1
    10 years ago

    Ah that's great news - I wasn't aware of the API v2 preview so thanks for letting me know.

    Cheers
    Ben

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!