We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Vladimir V.1
9 years agoExplorer | Level 4
Authorization code flow no longer works?
I am posting all required parameters to https://api.dropboxapi.com/oauth2/token but the servers keeps returning a very vague error: REQUEST: POST https://api.dropbox.com/oauth2/token HTTP/1.1...
- 9 years ago
Thanks for the report! The request payload for /oauth2/token is expected to be delivered with a content type of "application/x-www-form-urlencoded", per RFC 6749 Section 4.1.3. It's possible we may have also been accepting "application/json" though. We'll look into it, but in the meantime, you can switch to "application/x-www-form-urlencoded", which I've confirmed is working as expected.
Also, for reference, but api.dropbox.com and api.dropboxapi.com are supported for this endpoint.
Vladimir V.1
9 years agoExplorer | Level 4
Just noticed a typo in the request code (retirect_uri), should be redirect_uri. But it is still not working.
Vladimir V.1
9 years agoExplorer | Level 4
Next I realized I was hitting the wrong endpoint, needs to be https://api.dropboxapi.com, not https://api.dropbox.com.
Unfortunately I am still getting the same error.
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!