You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

tim's avatar
tim
Explorer | Level 4
9 years ago

Possible to accept sharing invitation via API v2?

Suppose someone uses dropbox.com to email me an invite to a shared folder. 

The link looks like https://www.dropbox.com/l/scl/AAABIgLonGIDsTriNG

 

If the user inputs exactly that link into my app, is there any way for my app to accept that invite (thus attaching/mounting it to the user's dropbox), and then get the local /dir (path_display) to download files?

 

I can see this endpoint,  

/2/sharing/list_mountable_folders 

 ... which I imagine might list the invite amongst all the others the user has, but I cannot see how to filter down to find the one I want, which is necessary because... 

/2/sharing/mount_folder

... takes a shared_folder_id that I don't have.

 

In other words how can I go from https://www.dropbox.com/l/scl/AAABIgLonGIDsTriNG  to a shared_folder_id?

 

all help much appreciated thanks!

  • Hi Tim, there isn't a way to convert those links to shared folder IDs using the API unfortunately. The API wasn't designed to work with those links directly. The intent was that the app would use list_mountable_folders as you mentioned to get the list of folders that can be mounted in a user's account. You can display this list to the user to have select from it if necessary.

     

    I'll pass this along as a feature request for a way to work with these links though.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Hi Tim, there isn't a way to convert those links to shared folder IDs using the API unfortunately. The API wasn't designed to work with those links directly. The intent was that the app would use list_mountable_folders as you mentioned to get the list of folders that can be mounted in a user's account. You can display this list to the user to have select from it if necessary.

     

    I'll pass this along as a feature request for a way to work with these links though.

    • tim's avatar
      tim
      Explorer | Level 4
      Thanks, that would be great!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

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 or Facebook.

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!