When I share a dropbox folder by passing a link to someone, the format is something like:
Here is the API to read a shared folder:
What is the folder id? I tried every part of the shared link without any success, I just get a 409 error "Invalid id".
How can I read a shared link?
The /2/sharing/get_folder_metadata endpoint you're referring to is for operating on shared folders, but you have a shared link (to a folder) which is a different kind of sharing functionality on Dropbox and so uses a different ID.
If you want information about a shared link, for a file or folder, you can use /2/sharing/get_shared_link_metadata:
Or to download file content from a link:
@Gregory, how can you list the files that are at the public shared link?
get_shared_link_metadata does not return the list of files, and does not return the shared folder ID, so how is this possible?
Hi Tim, unfortunately that endpoint in API v2 doesn't currently return those particular pieces of information, but I'll be sure to pass this along as a feature request.
Apologies for the inconvenience! The API v2 shared link endpoint doesn't return all of the same information. I've sent this along as a request but I can't offer a timeline for when it may be added to v2.
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.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!