Using a SSO Token in REST to Manually edit an Envelope
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:
-
For a prepared envelope built at sb.assuresign.net: https://sb.assuresign.net/ui/simpleSetup/{preparedEnvelopeID}?ssoToken={ssoTokenValue}.
For a prepared envelope built at www.assuresign.net: https://www.assuresign.net/ui/simpleSetup/{preparedEnvelopeID}?ssoToken={ssoTokenValue}.