Skip to main content
Newcomer
April 4, 2024
Question

Error code : badrequest Response :{"error":"invalid_grant","error_description":"unsupported_grant_type"}

  • April 4, 2024
  • 2 replies
  • 744 views

Hello, 

        I am developing an integration from Workday to DocuSign to pull the completed documents into Workday. I am getting following error when trying to authenticate to the endpoint - https://account-d.docusign.com/oauth/token to get the access token

Error code : badrequest
Response :{"error":"invalid_grant","error_description":"unsupported_grant_type"}

I have the following Grant type which works fine in Postman. In addition to grant type, assertion key is generated which is passed along with grant type in Workday

assertion=@{props['jwt.assertion']}&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Postman:

 

2 replies

Renan.Araujo
Docusign Employee
April 15, 2024

Hey @Radhika

 

You would need to check in the Workday integration if they are receiving properly the values that you use and are currently working in your Postman configuration. Anything missing in the assertion or any missing value provided in the grant_type will make it fail. 

 

😎

Renan Araujo, Developer Support @ Docusign
Newcomer
July 3, 2025

Hi,

I am getting error while integrating “https://account-d.docusign.com/oauth/token” from PL/SQL.

{"error":"invalid_grant","error_description":"unsupported_grant_type"} with status 400.

 

Header>>> Content-Type-application/x-www-form-urlencoded

BODY >>

{
    "mode": "formdata",
    "formdata": [
        {
            "key": "grant_type",
            "value": "urn:ietf:params:oauth:grant-type:jwt-bearer",
            "type": "text"
        },
        {
            "key": "assertion",
            "value": "XXXX",
            "type": "text"
        }
    ]
}

 

I have tried with mode as ‘urlencoded’, still getting same error. I guess where i am doing the wrong.

 

Thanks

Salil