Skip to main content
New Voice
March 11, 2025
Question

I managed to connect to dev API but i cannot do same on Production

  • March 11, 2025
  • 1 reply
  • 56 views

Are these url s correct? $baseUrl = "na3.docusign.net/restapi";

$consentUrl = "https://account.docusign.com/oauth/auth?response_type=code&scope=$scope&client_id=$clientId&redirect_uri=$redirectUri";

 

the JWT headers

$payload = [

        'iss' => $clientId,

        'sub' => $apiUserId,

        'aud' => 'account.docusign.com',

        'scope' => 'signature impersonation',

        'iat' => $now,

        'exp' => $now + 3600 // 1 hour expiration

    ];

 

$tokenUrl = "https://account.docusign.com/oauth/token";

$config=$apiClient->getConfig();

    $config->setHost('https://na3.docusign.net/restapi');

1 reply

Ivan.Dinkov
Docusign Employee
Docusign Employee
March 12, 2025

Hi ​@dgh11 
You can confirm the baseURL by going to Admin > Apps and Keys. The baseURL for your account should be in the top right of the screen. 

Unfortunately, without the actual error, integration key, and user ID we can not confirm what went wrong.

Please DM me the error and the integration key?

 

Thank you

 

Ivan D