Copy link to clipboard
Copied
I have this errors {"error_description":"Missing grant_type parameter value","error":"invalid_request"} when I am trying to retrive authentication code using https://api.in1.echosign.com/oauth/token url.
how to solve it please help me . I am giving you all my account details.
Email ID:[Personal information removed by moderator.]
Application ID: CBJCHBCAABAAuNaCVzG8tTMkcpuvNo9_aLgrzN4IXJZh
Client secret: J55Yxw9GB5YDz8MN1UjJkTvLJVqgbAGK
My Authintication code and all other details are given below:
POST http://api.echosign.com/oauth/token?
code=CBNCKBAAHBCAABAATf1XHjO0WIdAhtziQltQi5OYhyEwzzHa&client_id
=CBJCHBCAABAA2Y0aHfYjTsezcdDkTXtovlaUHyIa9z5z&client_secret=J55Y
xw9GB5YDz8MN1UjJkTvLJVqgbAGK&redirect_uri=https://salesmgmt.cogitoc
entral.com&grant_type=authorization_code HTTP/1.1Content-Type: application/x-www-form-urlencoded
POST /oauth/token HTTP/1.1
Host: api.in1.echosign.com
Content-Type: application/x-www-form-urlencoded
code=CBNCKBAAHBCAABAATf1XHjO0WIdAhtziQltQi5OYhyEwzzHa&
client_id=CBJCHBCAABAA2Y0aHfYjTsezcdDkTXtovlaUHyIa9z5z&
client_secret=J55Yxw9GB5YDz8MN1UjJkTvLJVqgbAGK&
redirect_uri=https://salesmgmt.cogitocentral.com&
grant_type=authorization_code HTTP/1.1
Copy link to clipboard
Copied
This is the poorly named Community Help forum (which is the forum for issues using the forums).
Please tell us what Adobe application you are using so that this can be moved to the proper forum for help.
Copy link to clipboard
Copied
I am using Adobe Sign for developers version and I got this error[{"error_description":"Missing grant_type parameter value","error":"invalid_request"}] when I am trying to get the access token, refresh token from Adobe Sign. We use this https://api.in1.echosign.com/oauth/token to get these tokens, and POST these parameters
POST /oauth/token HTTP/1.1
Host: api.in1.echosign.com
Content-Type: application/x-www-form-urlencoded
code=CBNCKBAAHBCAABAATf1XHjO0WIdAhtziQltQi5OYhyEwzzHa&
client_id=CBJCHBCAABAA2Y0aHfYjTsezcdDkTXtovlaUHyIa9z5z&
client_secret=J55Yxw9GB5YDz8MN1UjJkTvLJVqgbAGK&
redirect_uri=https://salesmgmt.cogitocentral.com&
grant_type=authorization_code HTTP/1.1
these are given by AdobeSign.
Copy link to clipboard
Copied
Exact same issue as you...
Copy link to clipboard
Copied
I am using Adobe Sign for developers version and I got this error[{"error_description":"Missing grant_type parameter value","error":"invalid_request"}] when I am trying to get the access token, refresh token from Adobe Sign. We use this https://api.in1.echosign.com/oauth/token to get these tokens, and POST these parameters
POST /oauth/token HTTP/1.1
Host: api.in1.echosign.com
Content-Type: application/x-www-form-urlencoded
code=CBNCKBAAHBCAABAATf1XHjO0WIdAhtziQltQi5OYhyEwzzHa&
client_id=CBJCHBCAABAA2Y0aHfYjTsezcdDkTXtovlaUHyIa9z5z&
client_secret=J55Yxw9GB5YDz8MN1UjJkTvLJVqgbAGK&
redirect_uri=https://salesmgmt.cogitocentral.com&
grant_type=authorization_code HTTP/1.1
these are given by AdobeSign.
Copy link to clipboard
Copied
Please check that code parameter is valid for only 30secs.
Copy link to clipboard
Copied
Post is too old.
I was able to fix it is removing HTTP/1.1 in grant_type.
grant_type=authorization_code
Also, don't share your code/keys publicly.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
iam d
facing same issue
Copy link to clipboard
Copied
same issue
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Can someone please help me with this issue or point me to where I can get the answer for this?
Thanks in advance,
Louis
Copy link to clipboard
Copied
Anyone, please.
Copy link to clipboard
Copied
Please ensure the request is sent under Content-Type "x-www-form-urlencoded"
Copy link to clipboard
Copied
Having the same issue
Copy link to clipboard
Copied
I was able to resolve my issue, by using:
https://secure.na4.echosign.com/oauth/v2/token
instead of
https://api.na4.echosign.com/oauth/v2/token
I hope that helps you.
Copy link to clipboard
Copied
Hello,
I am trying to get access token using this post request:
https://secure.na3.echosign.com/public/oauth/v2/token?
code=xxxxxxx&
client_id=xxxxxxxxx&
client_secret=xxxxxxxxxxx&
redirect_uri=https://mydomain.com&
grant_type=authorization_code
When I send this request I get the following message:
Copy link to clipboard
Copied
the Post request to get the access token cannot be done with url parameters, see
https://secure.eu1.echosign.com/public/static/oauthDoc.jsp
also you need to call the api endpoint
(adjust for your region/shard if needed)
Copy link to clipboard
Copied
Hi Simon, thanks for your response.
The reason I am calling the api endpoint as https://secure.na3.echosign.com is because I've read that it should be the same as the url in my Adobe Sign account as you can see in the image I am attaching (url.jpg). But you are saying it should be https://api.eu1.echosign.com?
I am also getting 401 (Unauthorized)
any other suggestions please let me know.
Thanks,
Copy link to clipboard
Copied
Please ensure the request is sent under Content-Type "x-www-form-urlencoded"
Copy link to clipboard
Copied
Did you manage to find a solution for your issue with oauth/v2/token?
Copy link to clipboard
Copied
Make sure you don't pass all parameters as query string, it has to be x-www-form-urlencoded
Copy link to clipboard
Copied
Using "x-www-form-urlencoded" instead of a "raw" body fixed my issues. Thank you!
Copy link to clipboard
Copied
I've found that removing the 'v2/' from the url works for me. So the url I used for refresh was:
The header, as stated before, MUST be:
Content-Type: application/x-www-form-urlencoded
I hope this helps others.