saurabh | Posts: 1

getting unauthorised access and packageid not created

0 votes
i am using sand box API with PHP for electronic signature but it shows authentication error. Please advice what is missing //Define api key and api url private $url = "https://sandbox.esignlive.com/api"; // private $key = "your_api_key"; private $key = "c07a3830-79d2-48b3-a9af-7b07ebd46aec"; private $packageAppend = "/packages/"; private $tokenAppend = "/signerAuthenticationTokens/"; it seems packageId is not being created.

Duo_Liang | Posts: 3776

Reply to: getting unauthorised access and packageid not created

0 votes
Hi saurabh, 401 error usually refers to the mismatch of API Key and Instance URL, so could you make sure that you were using the correct API Key by following below steps? Because the API Key shouldn't contain dash in the middle. If you are testing on Sandbox Environment (integration enabled by default), - log onto your web portal (https://sandbox.esignlive.com, for US2 Sandbox) - click the dropdown button besides your name on top right and choose “Admin”. - Go to “Integration” section from admin page and you will see your API Key be masked. - Clicking the eye button on right could render the key visible. Hope this could help! Duo

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off