Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
Forum Discussion
emretezisci
2 years agoExplorer | Level 3
"error_description": "missing required field \"grant_type\""
I am trying to get a sl access token with my refresh token but it gives this error. Any idea why? Input: {
"body": {
"grant_type": "",
"refresh_token": "<token>"
},
"contentType": "applicat...
Здравко
2 years agoLegendary | Level 20
Hi emretezisci,
Haha..😁 Ok, Yes, a little confusing message, maybe. Don't catch to the words. What grant type you are declaring in fact? 🧐 Nothing? 🤔 🙃 It's something required, cannot be nothing. 😉
Hope this gives direction.
- emretezisci2 years agoExplorer | Level 3
Oh I think it was deducted for some reason.
{ "body": { "grant_type": "refresh_token", "refresh_token": "<token>" }, "contentType": "application/json", "followRedirect": false, "headers": [ { "key": "Authorization", "value": "Basic <key>" } ], "method": "POST", "timeoutSeconds": 5, "url": "https://api.dropbox.com/oauth2/token" }
I use refresh_token.
- Здравко2 years agoLegendary | Level 20
In addition why are you using application/json encoding? It requires application/x-www-form-urlencoded POST parameters. 😉
- emretezisci2 years agoExplorer | Level 3
Thanks, for your prompt responses. I am making these requests from another integration that doesn't support application/x-www-form-urlencoded.
Do you know any other way to make it work with an application/json encoding?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,994 PostsLatest Activity: 5 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!