Skip to main content

Hello,

I am trying to create a module in Make.com that checks if an envelope has been completed. This works for a while, but eventually, I receive an error message. I have a business plan with DocuSign. I have tried several solutions in both DocuSign and Make.com to resolve the issue, but so far without success.

I believe the access token might only be valid for a limited time, and I’m looking for a way to either extend the access token’s validity or use a refresh token so that the system doesn’t keep failing as it does now.

Has anyone encountered this issue and can offer guidance on how to solve it?

Thank you in advance for your help!

Hello,

The lifetime of your access token depends on the Grant Type you used to obtain it.

  • For Authorization Code Grant, the lifetime is 8 hours. You can also request the extended scope that enables almost indefinite refresh of tokens
  • For JWT Grant, the lifetime is 1 hour. You cannot request an extended scope with JWT Grant.

If you obtain your access token using one of the Authorization Code Grants then you should also receive a refresh token (with a lifetime of ~30 days) that you can use to easily regenerate your access token by providing that refresh token as the value of grant_type.

POST https://account-d.docusign.com/oauth/token grant_type=refresh_token&refresh_token=YOUR_REFRESH_TOKEN&client_id=YOUR_INTEGRATION_KEY 

The authentication methods in the SDKs have support for generating and using refresh tokens, and you can read about the process for using refresh tokens here: https://developers.docusign.com/platform/auth/confidential-authcode-get-token/#use-refresh-tokens

Thanks,
Cassandra