Hey! I run a small web-based widget that people embed in their Notion workspace. It reads posts from the user's own Notion database and shows them as a preview of their Instagram feed (a grid of upcoming posts).
I'd like users to be able to paste Dropbox shared links to their images and videos into their Notion database, so the widget can display that media in the grid. Before I launch this feature, I want to make sure my setup fits the Developer Terms and the Acceptable Use Policy.
How it would work:
- The user shares a file or folder from their own Dropbox ("anyone with the link can view") and pastes the shared link into their Notion database.
- For a file link, I change dl=0 to raw=1, as described in your help center article on forcing a link to render, and use that URL in an img or video tag in the widget.
- For a folder link (used as a carousel), my server calls /2/files/list_folder with shared_link: { url } to list the files, then /2/sharing/get_shared_link_metadata with url plus path for each file, to get that file's own shared link (the url field). I then use each link with raw=1 the same way.
- Both calls use app authentication only (app key + secret, server-side). No user connects their Dropbox account and I never get a user token. The secret never reaches the browser.
- Files load directly from Dropbox in the viewer's browser. I don't download, store, proxy or re-host the content. I only cache the folder listing (names and links) for about 10 minutes to avoid repeated API calls.
- Traffic is low: each widget is mostly viewed by its owner, and sometimes their client. Bandwidth counts against each user's own account, and my help docs will mention Dropbox's shared-link limits.
My questions:
- Is displaying raw=1 shared-link files inside my widget (in img/video tags) an acceptable use, or would you consider it hotlinking that isn't allowed?
- Is it OK to use app authentication (no user token) with list_folder + get_shared_link_metadata for shared links that users give me, as described above?
- I deliberately don't ask users to connect their Dropbox account, because I only need the specific files they choose to share and don't want access to anything else in their account. I also looked at the Embedder, but it doesn't support video. Given that, is the setup above the right one to use?
Thanks!