You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Kentwt's avatar
Kentwt
New member | Level 2
2 years ago

How to get an access token and refresh token

I am encountering issues when trying to obtain an access token and refresh token. I retrieved the access code from the following URL: https://www.dropbox.com/oauth2/authorize?client_id=<app key>&r...
  • Greg-DB's avatar
    2 years ago

    When you say you executed it, it sounds like you're referring to the step where you call /oauth2/token to exchange the authorization code for a refresh token and access token. It looks you're sending the parameters as JSON though, but the /oauth2/token endpoint requires application/x-www-form-urlencoded POST parameters, not JSON. Please update your code to send those parameters as application/x-www-form-urlencoded POST parameters. There's an example of this flow here that may be helpful.