One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
FALSHER
4 years agoNew member | Level 2
How to add a user to an application in development?
I want to test the developed application on another account. I get the access token using the method "/oauth2/authorize?client_id=*****&response_type=code". As a result, I get a key that is different in length from the one that I generated in the app console, in addition, when I execute any request in the dropbox, I get a 401 Unauthorized status
I was able to solve my problem myself. For authorization using the Bearer method, you need exactly the same long access token that can be obtained with response_type=token
- FALSHERNew member | Level 2
I was able to solve my problem myself. For authorization using the Bearer method, you need exactly the same long access token that can be obtained with response_type=token
- Greg-DB
Dropbox Staff
Yes, when using 'response_type=code', you'll get back an "authorization code", not an "access token". You can exchange the authorization code for an access token by calling /oauth2/token.
When using 'response_type=token', you'll get back an access token directly.
The 'response_type=token' flow is no longer recommended though. It's best to use 'response_type=code' for server-side apps, and 'response_type=code' with PKCE for client-side apps.
You can find more information in the OAuth Guide and authorization documentation.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 4 hours ago
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 or Facebook.
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!