Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Bob D.20
9 years agoNew member | Level 1
API v2 Shared Link - unique identifier length
When obtaining a shared link via an API call, the unique ID that is returned as part of the shared link URL is 15 characters, based on my initial experimentation. Is that a fixed length?
I am tryin...
Greg-DB
Dropbox Community Moderator
9 years agoHi Bob, the length of the token in shared links isn't guaranteed, so I don't recommend relying on it.
You might be slightly better off parsing the URL itself (e.g., using something like Python's urlparse) and grabbing the path component with the token. However, the link format itself also isn't guaranteed, so I can't make any promises on that either.
The API only guarantees that it will return JSON containing a string of the shared link URL, so the only safe thing to do is actually parse the JSON and take the URL string.
About 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!