We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
NJF
7 years agoHelpful | Level 5
Where can I find my own account_id?
To make a sucessful call to: https://api.dropboxapi.com/2/users/get_account,
I need to provide (my own) account_id.
I am trying to access my own account via the api v2 bypassing the OAuth flow, but using the app registration page generated access token, using node and axios, directly calling the api not using any sdk. In the 'data: {}' part, I need to provide an account_id.
It looks like this: "dbid:AAH4f99T0taONIb-YourACIDWxbNQ6ywGRopQngc".
Where can I find that?
To access the account information, including the account ID, for the account for the access token you're using, you should use the /2/users/get_current_account endpoint instead of /2/users/get_account.
That doesn't take any parameters, and instead just returns the account information based on the access token used for the call.
1 Reply
Replies have been turned off for this discussion
- Greg-DB7 years ago
Dropbox Community Moderator
To access the account information, including the account ID, for the account for the access token you're using, you should use the /2/users/get_current_account endpoint instead of /2/users/get_account.
That doesn't take any parameters, and instead just returns the account information based on the access token used for the call.
About Discuss Dropbox Developer & API
Make connections with 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!