Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Jiho P.
10 years agoExplorer | Level 3
Dropbox Account Id vs UID
Hello, I'm using Swifty dropbox and wanted to know the difference between accountId I get from getAccountId() call vs. the userId set in my shared client.
Thanks in advance!
Greg-DB
Dropbox Community Moderator
10 years agoAPI v1 isn't deprecated, so you can use it if you want, but we certainly recommend moving to API v2 when possible.
For API v2, you should use the account ID, which is stable. As part of migrating to API v2, you should get the account IDs. I.e., for any access token, call the getAccount method to get the corresponding account ID.
Steve L.
9 years agoHelpful | Level 6
Poking this thread back into life, is there a way in V2 to get the V1 userId?
- Greg-DB9 years ago
Dropbox Community Moderator
No, API v2 does not offer a way to get the v1 user ID.- Steve L.9 years agoHelpful | Level 6
I have no problems changing to use the accountID going forward, but it would be very helpful if there were a way to get the V1 userID (read-only) for those who have thousands of existing installs that use the Dropbox V1 userID as a primary key. As things stand there's no way to associate existing users with their data.
- AEmery9 years agoExplorer | Level 3
Another problem I'm running into with the removal of the userID is that the URL to a file revision history is using this userID. These URLs are in the following format: https://www.dropbox.com/history/[PATH_TO_FILE]?_subject_uid=111111111. Is there another way to generate them now that API v2 no longer returns the userID?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!