Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
TS L.
7 years agoExplorer | Level 4
Length of Dropbox account ID
What is the length of Dropbox account ID. Is the lenght fixed or it may change?
It looks like you're referring to using the official Dropbox API v2 Java SDK. Yes, the getAccountId method on the FullAccount object returned by getCurrentAccount would return the account ID for the connected user.
9 Replies
Replies have been turned off for this discussion
- Jane7 years ago
Dropbox Staff
- TS L.7 years agoExplorer | Level 4I like to know what is the value of the number of characters. Is the value always the same. Or it can be any value?
- TS L.7 years agoExplorer | Level 4
Kindly advise what is the number of characters of Dropbox Account ID.
Is the number of characters always the same for all the accounts?
- Jane7 years ago
Dropbox Staff
Thanks for circling back to us TS L.! If it’s not too much trouble for you, can you clarify how you’d wish to utilize this info, so as to further advise on how you could about on this matter?
- TS L.7 years agoExplorer | Level 4
In my app, I want to verify that the account number is valid. One of the criterial used in my app is to verify the number of characters.
- Greg-DB7 years ago
Dropbox Community Moderator
TS L. The `account_id` value on the Dropbox API is always 40 characters long.
You can that documented in `FullAccount.account_id`, for instance, as returned by /2/users/get_current_account:
account_id String(min_length=40, max_length=40)
- TS L.7 years agoExplorer | Level 4
I used
mDbxClient.users().getCurrentAccount().getAccountId()will that get the value `account_id`?
- Greg-DB7 years ago
Dropbox Community Moderator
It looks like you're referring to using the official Dropbox API v2 Java SDK. Yes, the getAccountId method on the FullAccount object returned by getCurrentAccount would return the account ID for the connected user.
- TS L.7 years agoExplorer | Level 4
Got it. Thank you.
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!