### Example code_verifier and code_challenge Source: https://developers.docusign.com/platform/auth/confidential-authcode-get-token Illustrates example values for code_verifier and code_challenge used in PKCE. ```text 1 f083258ecbfb14d7a03d2914db2010e217652ceb83333146ba20b 7c3aab3f865 ``` -------------------------------- ### Example API Call with Base URI and Account ID Source: https://developers.docusign.com/platform/auth/implicit-get-token This example shows a concrete request path for the AccountBrands:list API call, substituting placeholder values with a demo base URI and API Account ID. ```http GET https://demo.docusign.net/restapi/v2.1/accounts/18b4799a-xxxx-xxxx-xxxx-b5b4b8a97604/brands ``` -------------------------------- ### Example API Call: AccountBrands:list Source: https://developers.docusign.com/platform/auth/jwt/jwt-get-token This example shows how to construct a request to the AccountBrands:list API endpoint using the obtained base URI and access token. ```http GET restapi/v2.1/accounts/{accountId}/brands ``` ```http GET https://demo.docusign.net/restapi/v2.1/accounts/18b4799a-xxxx-xxxx-xxxx-b5b4b8a97604/brands ``` ```curl curl -- request GET https://demo.docusign.net/ restapi/v2.1/accounts/ 18b4799a-xxxx-xxxx-xxxx-b5b4b8a97604/brands --header "Authorization: Bearer eyJ0eX...V8KroQ" ``` -------------------------------- ### JWT Header Example Source: https://developers.docusign.com/platform/auth/jwt/jwt-get-token Example of the header section for a Docusign JWT. ```json { "alg": "RS256", "typ": "JWT" } ``` -------------------------------- ### Base64 Encoding Example Source: https://developers.docusign.com/platform/auth/reference/obtain-access-token Example of how to get the Base64 value for the Authorization header using JavaScript. ```javascript btoa('7c2b8d7e-xxxx-xxxx-xxxx-cda8a50dd73f:d7014634-xxxx-xxxx-xxxx-6842b7aa8861') ``` -------------------------------- ### Sample Authorization URI with PKCE Source: https://developers.docusign.com/platform/auth/authcode/confidential-authcode-get-token An example of an authorization URI that includes PKCE parameters. ```uri https://account-d.docusign.com/oauth/auth?response_type=code &scope=YOUR_REQUESTED_SCOPES &client_id=YOUR_INTEGRATION_KEY &redirect_uri=YOUR_REDIRECT_URI &code_challenge_method=s256 &code_challenge=YOUR_CODE_CHALLENGE &state=YOUR_CUSTOM_STATE ``` -------------------------------- ### Example API Call: AccountBrands List Source: https://developers.docusign.com/platform/auth/implicit-get-token This example demonstrates how to make an eSignature REST API request, specifically to call the AccountBrands:list endpoint, by including the access token and the user's base URI. ```http GET restapi/v2.1/accounts/{accountId}/brands ``` -------------------------------- ### Example Log Entry Source: https://developers.docusign.com/platform/webhooks/mutual-tls/mutual-tls-nginx An example log entry showing a successful POST request with client certificate details. ```log 162.248.184.11 - - [13/Feb/2017:11:44:29 +0000] "POST /info.php HTTP/1.1" 200 61 "Client fingerprint" d2818c52xxxxxxxxxxxxxxxxxxxxxxxx6cc3a0ce "Client DN" /C=US/ST=Washington/L=Seattle/O=Docusign, Inc./ OU=Technical Operations/CN=demo.connect.docusign.net ``` -------------------------------- ### Example Base Path Source: https://developers.docusign.com/platform/auth/reference/user-info An example of a fully formed base path for the developer environment. ```text https://demo.docusign.net/restapi/v2.1/accounts/fe0b61a3-xxxx-xxxx-xxxx-4592af32aa9b/ ``` -------------------------------- ### Install Gemini CLI Source: https://developers.docusign.com/platform/mcp-server/google-gemini-cli Command to install the Gemini CLI globally using npm. ```bash npm install -g @google/gemini-cli ``` ```bash sudo npm install -g @google/gemini-cli ``` -------------------------------- ### JWT Signature Example Source: https://developers.docusign.com/platform/auth/jwt/jwt-get-token Example of how the signature is constructed for a Docusign JWT using your private RSA key. ```plaintext RSASHA256( base64UrlEncode(header) + "." + base64UrlEncode(body), "" ) ``` -------------------------------- ### Sample URI with PKCE Source: https://developers.docusign.com/platform/auth/confidential-authcode-get-token Shows the URI syntax for an authorization code request including PKCE parameters. ```uri https://account-d.docusign.com/oauth/auth? response_type=code &scope=YOUR_REQUESTED_SCOPES &client_id=YOUR_INTEGRATION_KEY &redirect_uri=YOUR_REDIRECT_URI &code_challenge_method=s256 &code_challenge=YOUR_CODE_CHALLENGE &state=YOUR_CUSTOM_STATE ``` -------------------------------- ### Runtime User API Call Example Source: https://developers.docusign.com/platform/auth/jwt/jwt-best-practice This example shows how to retrieve a user ID using an API call after impersonating an admin user. ```bash {base API URL}/{accountId}/users?email={email} ``` -------------------------------- ### JWT Body Example Source: https://developers.docusign.com/platform/auth/jwt/jwt-get-token Example of the body section for a Docusign JWT. Replace placeholders with your integration key, user ID, and current time. ```json { "iss": "", "sub": "", "aud": "account-d.docusign.com", "iat": , "exp": , "scope": "signature impersonation" } ``` -------------------------------- ### Example cURL request for AccountBrands:list Source: https://developers.docusign.com/platform/auth/authcode/public-authcode-get-token Example cURL command to make the AccountBrands:list API call, including the Authorization header. ```curl curl -- request GET https://demo.docusign.net/ restapi/v2.1/accounts/ 18b4799a-xxxx-xxxx-xxxx-b5b4b8a97604/brands --header "Authorization: Bearer eyJ0eX...V8KroQ" ``` -------------------------------- ### SIM Connect configuration body Source: https://developers.docusign.com/platform/webhooks/connect/validation-and-security/managing-oauth-credentials-multiple-accounts Example JSON body for a SIM Connect configuration, demonstrating how to set up integrator-managed OAuth. ```json { "configurationType":"custom", "urlToPublishTo":"Your Webhook URL", "name": "Your configuration name", "allowEnvelopePublish":"true", "enableLog":"true", "includeOauth":"true", "integratorManaged":"true", "deliveryMode":"SIM", "events":[ "envelope-completed" ], "requiresAcknowledgement":"true" } ```