Skip to main content
Question

Getting an 401 Unauthorized error for DocuSign API call

  • February 23, 2024
  • 2 replies
  • 927 views

Forum|alt.badge.img+2

I am new to DocuSign’s eSignature REST API. I am using postman to connect with DocuSign Rest API. I followed the step mentioned in the below link and connected with DocuSign demo account. 

Postman collections | DocuSign

As mentioned in the above link , I got the access token and I could able to get my using information from DocuSign but When I try to create an envelope or do any API calls with DocuSign I am getting 401 unauthorized error response.

 

Could any one please help me to understand what I am doing wrong here.

 

Please find below error screenshot.

 

2 replies

Robert Jackson
Troubleshooter
Forum|alt.badge.img+8

Hi Nirmal

Have a look at StackOverflow as there is a lot of API developer information on that channel. Not to say dont post here as there is a lot of help and good people around with lots of knowledge but it is another channel to seek guidance and info for developers.

Robert.


Forum|alt.badge.img+7
  • Docusign Employee
  • 59 replies
  • February 29, 2024

Hello Nirmal

 

401 Unauthorized mean the client request has not been completed because it lacks valid authentication credentials for the requested resource, I recommend you to verify with your Oauth details & verify all your headers(authentication object needed to be in xml) .

 

headers = { 'Accept':'application/json', 'Content-Type':'application/json', 'X-DocuSign-Authentication':{'Username':'abcusername','Password':'password123','IntegratorKey':'xyz123'} }; res = nlapiRequestURL('https://demo.docusign.net/restapi/v2/login_information', '', headers, 'GET');

 

Thanks & Regards

Sai HariPriya Dandamudi | Developer Support Engineer | DocuSign

A picture containing clipartDescription automatically generated