stuladhar | Posts: 27

Getting Signing url from the packageID

0 votes
I have seen the post regarding the Signingurl from the package. http://docs.e-signlive.com/mc/content/c_esignlive_integrator_s_guide/rest_api/signing_url.htm In this example it is getting the signing url by the following GET method GET /packages/{packageId}/roles/{roleId}/signingUrl How can we get the roleId from. And what do you mean by Authentication required. Do we need to add some extra parameter for Authentication required? Thanks, Sumit

harishaidary | Posts: 1812

Reply to: Getting Signing url from the packageID

0 votes
Hey Sumit, I'll answer your questions in two parts.
How can we get the roleId from.
You can retrieve the roleIds by making a GET https://sandbox.esignlive.com/api/packages/{packageId}/roles. In the JSON response, the roleId can be found in the "id" field. Typically, you would set one manually during package creation. If you do not, eSignLive will assign a randomly generated one to your signer(s).
And what do you mean by Authentication required. Do we need to add some extra parameter for Authentication required?
This is the authentication header that is required when making HTTP requests to eSignLive. As per the documentation, this header is mandatory. Your authorization would typically look like:
Authorization: Basic api_key
Here are some links that will get you started: https://developer.esignlive.com/guides/quick-start/creating-and-sending-a-package-rest/ https://en.wikipedia.org/wiki/Representational_state_transfer https://en.wikipedia.org/wiki/List_of_HTTP_header_fields Regards,

stuladhar | Posts: 27

Reply to: Getting Signing url from the packageID

0 votes
Thanks Haris Haidary. Do you have any example how I can provide Authorization: Basic api_key in the header . -Sumit

harishaidary | Posts: 1812

Reply to: Getting Signing url from the packageID

0 votes
If you follow the example in the quick start guide I posted in my previous reply, it shows you how to set the authorization header.

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