Authentication
Before your application can make calls to the Click API, it must authenticate and obtain an access token. You must submit this access token, which proves your app’s identity and authorization, with each request.
You can use any supported OAuth2 authentication workflows to obtain an access token and make calls to the Click API. Service integrations may use Authorization Code Grant or JSON Web Token (JWT) Grant, while mobile apps may use Implicit Grant. See Platform Authentication for an overview of these grants and how to choose which grant to use for your app.
Required scopes
The only difference between authenticating with the Click API and the eSignature API is that when you request an access token for your OAuth2 scenario, you must request a special Click API scope during the authentication process. You can combine some Click API scopes with eSignature scopes.
You can choose from the following Click API scopes:
- 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:
https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20click.manage%20click.send&client_id=7c2b8d7e-xxxx-xxxx-xxxx-cda8a50dd73f&state=a39fh23hnf23&redirect_uri=http://example.com/callback
Implicit Grant
Request URL:
https://account-d.docusign.com/oauth/auth?response_type=token&scope=signature%20click.manage%20click.send&client_id=7c2b8d7e-xxxx-xxxx-xxxx-cda8a50dd73f&state=a39fh23hnf23&redirect_uri=http://example.com/callback/
JSON Web Token (JWT) Grant
Request URL:
https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20click.manage%20click.send&client_id=7c2b8d7e-xxxx-xxxx-xxxx-cda8a50dd73f&state=a39fh23hnf23&redirect_uri=http://example.com/callback
JSON request body:
Next steps:
-
See authentication in the Platform 101 documentation for an overview of each OAuth grant and how to choose which grant to use for your app.
-
Learn about how to implement each authentication flow by viewing these guides: