Skip to main content

Hi , 

I am using DocuSign Connect to connect to an API . API uses OAuth and an additional security using an header . 

How do I pass an additional header to the api ? Thanks for the help .

Hello, ​@SandyR 

 

Take a look in this article: 
OAuth for Docusign Connect

https://developers.docusign.com/platform/webhooks/connect/validation-and-security/oauth-connect/

 

I hope that helps, if so, I’d appreciate your Like here.

Best,

Alexandre


This blog article is very useful too:

https://www.docusign.com/blog/developers/introducing-oauth-connect-enhanced-security-webhooks


Hi Alexandre , 

 

Thank you for the reply . I had gone through this article but I wanted to add an extra header in the call from docusign to my api . 


Hi, ​@SandyR 

 

Take a look here: https://www.docusign.com/blog/developers/dsdev-from-the-trenches-working-with-headers-in-docusign-sdks#:~:text=The%20Docusign%20eSignature%20REST%20API%20also%20offers%20an%20optional%20header,30T20:08:59.9675791Z%22

To add extra headers to your DocuSign API calls, you can use the ApiClient object and its set_default_header method in the SDKs (like Python or C#). For example, to add a header named "X-Docusign-TimeTrack", you would use apiClient.set_default_header("X-Docusign-TimeTrack", "your_value")

 

Also,  You can add additional headers to be used with API calls that use the ApiClient object. The "Authorization" header is used to provide the authentication information for the request. The token is added after the word "Bearer", provided in the accessToken variable. This only needs to be done once for all API calls that will be utilizing the same ApiClient object; however, the token is only valid for eight hours. You will need to obtain a new one and update this header when the token expires. (Link to the article)

 

I hope that helps.

Alexandre


Reply