cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue in generating access token

Issue in generating access token

Mostafa Ezzat
Explorer | Level 4
Go to solution

Hello, I faced many issues in generating access token 

 

First, I have here access code generated <REDACTED>


Second trying to execute this curl : 

curl https://api.dropbox.com/oauth2/token \     -d code=<REDACTED> \     -d grant_type=authorization_code \     -d redirect_uri=https://api.dropbox.com/oauth2/token \     -u <REDACTED>

 It prints every time : 
{
"error": "invalid_grant",
"error_description": "redirect_uri mismatch"
}
However I have here the redirected links 

MostafaEzzat_0-1650622387439.png

 

31 Replies 31

chibyk101
New member | Level 2
Go to solution

Please I'm getting this response after I call the endpoint to acquire a bearer token

Response: 

{"error": "invalid_request", "error_description": "The request parameters do not match any of the supported authorization flows. Please refer to the API documentation for the correct parameters."}

Endpoint: 

https://api.dropbox.com/oauth2/token
I have followed all instructions and passed all required parameters listed here:
curl https://api.dropbox.com/oauth2/token \
    -d code=<AUTHORIZATION_CODE> \
    -d grant_type=authorization_code \
    -d redirect_uri=<REDIRECT_URI> \
    -d client_id=<APP_KEY> \
    -d client_secret=<APP_SECRET>

 

Здравко
Legendary | Level 20
Go to solution

@chibyk101, Try something more simple before jump into the deep (redirect URL). Take a look at this thread beginning. Make sure you can do as noted in solution and after that try experimenting. 😉

Good luck.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Здравко Legendary | Level 20
  • User avatar
    chibyk101 New member | Level 2
  • User avatar
    The Kingdom Explorer | Level 3
What do Dropbox user levels mean?