Follow

Using a SSO Token in REST to Manually edit the Envelope

Last updated 2020-06-15 18:17:54 UTC

You are able to open an envelope, created with the submit/prepare REST method, inside the Simple Setup User Interface to perform further modifications manually before sending the envelope to the Signatory.  Since the SSO Token is only valid for 30 seconds, it's best to launch simple setup in a web browser in an automated fashion.

First, get the authToken, using it in the Authorization headers of your submit/prepare post.

Then, create the envelope, which will return the prepareEnvelopeID.


POST https://sb.assuresign.net/api/documentnow/v3.6/submit/prepare
Accept: application/json
Authorization: Bearer AllYourTokenHere
X-AS-UserContext: your@email.com:YourOrganizationContextID

{
// prepared envelope contents
}

preparedEnvelopeID = 

 

Next, create an ssoToken with the same information your created your preparedEnvelopeID with:


POST https://sb.assuresign.net/api/documentnow/v3.6/authentication/sso
Accept: application/json
Authorization: Bearer AllYourTokenHere
X-AS-UserContext: your@email.com:YourOrganizationContextID


{ }

ssoToken = 


Finally, put these together, with the correct domain prefix and open in web browser.  Some examples below:

 

T6559

Have more questions? Submit a request