Skip to main content

I’m trying to get the access token.

URI: https://account-d.docusign.com/oauth/token

header

Authorization: base64 encoded of integration and secret.

body

grant_type: authorization_code

code: Code from the auth response.

 

But I got the reply 

{
    "error": "invalid_grant",
    "error_description": "unsupported_grant_type"
}

 

Any idea what I’ve done wrong?

Hi Ryan,

 

Have you reviewed this article, how to get an access token with Authorization Code Grant

 

 

Invalid authentication request: The response type is not supported

Indicates that the application is not configured to use Authorization Code Grant or the response type specified in the authorization code request is not set to code. Ensure that the value of the response_type header is code.

To change the Authentication setting:

  1. Open the Apps and Keys page for your developer account.
  2. Under Apps and Integration Keys, choose the Integration Key to use, then select Actions, then Edit.
  3. Select Authorization Code Grant.

 

Alex 


Thank you Alex,

I missing the header response_type: code. It’s working now. 


Reply