Skip to main content
New Voice
Mar 11, 2025 10:36 AM UTC
Question

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

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
Mar 12, 2025 11:57 AM UTC

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

 

Translate
Ivan D