Authentication Overview
Developing with the CLM API is only available for CLM customers with a production account. To purchase a plan to gain access to the CLM API, contact Docusign Sales.
Before your application can make calls to the CLM API, it must authenticate and obtain an access token. This access token proves your app’s identity and authorization. You must submit the token with each request.
You can use any Docusign-supported OAuth2 authentication workflow to obtain an access token and make calls to the CLM API: Confidential Authorization Code Grant, Public Authorization Code Grant, Implicit Grant, or JSON Web Token (JWT) Grant. Service integrations may use Confidential Authorization Code Grant or JWT Grant, while mobile apps may use Public Authorization Code Grant or Implicit Grant.
Note: Salesforce clients authenticate by using JWT Grant. For details, see Salesforce Client Authentication.
For an overview of these grant types and to determine the best grant type to use for your app, see Authentication in the Platform 101 documentation.
Prerequisites
Before you can use the Docusign CLM API, you need:
- A Docusign eSignature developer account and a Docusign CLM account.
- An integration key that identifies your app.
- A defined redirect URI for your integration key. This is the URL to which Docusign will redirect the user’s browser after authentication is complete.
- You must also have configured your app correctly for the OAuth type you want to use. For details, see the instructions for the grant type you want to use under Next steps.
Required scopes
One of the differences between authenticating with the CLM API and the eSignature API is that, when you request an access token for your OAuth2 scenario, you must request a special CLM API scope during the authentication process. You can combine CLM scopes with eSignature API scopes.
You can choose from the following CLM scopes:
Note: The impersonation scope is also required when using the JWT flow.
Only request the scopes you need for your application.
- Using Authorization Code Grant, you request scopes when you make the authorization code request.
- Using Implicit Grant, you request scopes when you make the access token request.
- Using JWT Grant, you request scopes in the body of the JWT token.
Authentication examples
The following examples show how to authenticate by using each grant type.
Authorization Code Grant
Request URL:
Implicit Grant
Request URL:
JSON Web Token (JWT) Grant
Request URL:
JSON request body:
Next steps
-
See Platform Authentication for an overview of each OAuth grant flow and how to choose which grant to use for your app.
-
Learn how to implement each authentication flow by viewing these guides:
-
To learn about JWT Grant authentication for Salesforce integrations, see Salesforce Client Authentication.