One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
swively
3 years agoExplorer | Level 3
sharing/get_file_metadata url type
Im trying to host an image via the preview_url from the /sharing/get_file_metadata endpoint.
My url looks like this: https://www.dropbox.com/scl/fi/-redacted-/filename.png?dl=0
Switching the param to ?raw=1 doesnt help when trying to host. Ive noticed in previous discussions that most people have links that look like https://www.dropbox.com/s/-redacted-/filname.png
I'm curious what is the difference between /scl/fi and /s ? Is it to do with folder permissions?
- swivelyExplorer | Level 3
looks like I need to use the https://api.dropboxapi.com/2/sharing/create_shared_link endpoint.
Sure need to hit a lot of endpoints to get all the info required for a file
- Greg-DB
Dropbox Staff
Dropbox has multiple types of links for different pieces of functionality, such as "preview links" (/scl/fi) and "shared links" (/s). And yes, if you want to use the link options like "dl" or "raw" for direct access as covered here, you should use "shared links". You can create shared links using /2/sharing/create_shared_link_with_settings (which is preferred to the deprecated /2/sharing/create_shared_link).
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 8 hours ago
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!