0
votes

I am using DocuSign Java SDK and trying to get access token using JWT flow. When I call ApiClient.requestJWTUserToken I got error:

"POST https://account-d.docusign.com/oauth/token returned a response status of 400 Bad Request"

But when I set debugging true then I got the actual error message:

{ "error": "consent_required" }

How can I get the real error?

1

1 Answers

0
votes

You need to get consent first using the specified account.

This is a one time event using this URL: https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id={ClientID}&redirect_uri={Your URI}