#2926: Quire Feedback
Status: To-do

I am attempting to Retrieve Access Token following the directions in the api docs (https://quire.io/dev/api/)

Example curl request

curl -H "Content-Type: application/json" -X POST -d '{"grant_type":"authorization_code","code":"my_code","client_id":"my_client_id","client_secret":"my_client_secret"}' https://quire.io/oauth/token

I only receive this response:

{"error":"unsupported_grant_type","error_description":"The supported grant types are 'authorization_code', 'refresh_token'."}

Can you see anything wrong with my curl request?

Created by Anderson Reinkordt Mar 5, 2020

Hi Júnior, this issue was posted on Stackoverflow here. Could you please kindly add a comment with the detailed information of the issue you are facing underneath the Stackoverflow post? We will add our developer team to further investigate, thank you for your help!

Peggy, Feb 11, 2022

Thank you.

Júnior Santana, Feb 14, 2022

Not works

Júnior Santana, Feb 11, 2022

Success, with jquery not problem

Júnior Santana, Feb 11, 2022

Is it possible to get the Authorization code through ajax?

Júnior Santana, Feb 11, 2022

Hi Júnior, I have passed your question to our Developer Team for help, you may see the reply from the team below.

You won't need to put the post body into the curly brackets {} e.g. -d '{"grant_type":"authorization_code","code":"my_code"....}'

Please try it like this: -d "grant_type":"authorization_code", ,"code":"my_code","client_id":"my_client_id", ...

Peggy, Feb 14, 2022

Hi @kleineaffe2003 , all the questions regarding Quire API will be answered in Stackoverflow under [quire-api] tag (https://stackoverflow.com/questions/tagged/quire-api). Because we would like to create a place for our developer's community, then everyone can chime in and provide suggestions and work together. Thank you very much.

I have posted your question here: https://stackoverflow.com/questions/60540788/retrieve-access-token-for-quire-api-unsupported-grant-type

Peggy, Mar 5, 2020