How to Send an Agreement through REST- API (Tranisent document ) | Adobe Sign
How to Send an Agreement for Signature using the REST API with the file source as a transient document using the Adobe Sign online REST API page.

Environment

REST API Swagger App

Steps

Generating a Transient document.

  1. Click transientDocuments.

  2. Click on the oAuth Access-token button.

  3. The Access token will be generated.

  4. Give the File-Name.

  5. Click on the 'Choose File' button to upload a document from your computer to be sent.

  6. Click the 'Try it out!' button.

You should receive a response like this:

{
               "transientDocumentId": "ThisIsNotARealIDValue-jy1F6Er5cWrPwjA13G2fXGUW3A1Ual5u-m8EZ_5Gn-Fo9utqWHuoX-eg7e9SJ-NfakUChCvahLzkeUWpCVjW1P3-iTX6fggdOUtj-xmkqgZgFw5zWJpSMZJcaHO9p25oKjmhtpv_b2UKOkgIEs-Xn8xXlymXtUSZ01x66j_BQWgV_piJE-HYcS1OOke708VMgTJHrVdjHi3TfMrE0SjLK7W8linzfeHLdaxXCtX-JwW5I32g3DpRd_vIg3o0y8V9pIi6AS6fTC7PqEhLo5ymbUHIWui4Ui-ZDPpC8sgnyDHzUABFLNnn9pQMJ5Cuuw4E-1u1CL28hOktk6aG"
           }

Generating an agreement using the Transient document.

  1. Click Agreements under Resources and Operations > Click POST/Agreements.

  2. Generate the access token using steps 3 - 4.

  3. In the Agreement creation info section, add the below code.

    {
       "documentCreationInfo": {
           "signatureType": "ESIGN",
           "recipientSetInfos": [
               {
                   "recipientSetMemberInfos": [
                       {
                           "email": ""
                       }
                   ],
                   "recipientSetRole": "SIGNER"
               }
            ],
           "signatureFlow": "SENDER_SIGNATURE_NOT_REQUIRED",
           "message": "Please Sign this from us!",
           "fileInfos": [
               {
                   "transientDocumentId": "ThisIsNotARealIDValue-jy1F6Er5cWrPwjA13G2fXGUW3A1Ual5u-m8EZ_5Gn-Fo9utqWHuoX-eg7e9SJ-NfakUChCvahLzkeUWpCVjW1P3-iTX6fggdOUtj-xmkqgZgFw5zWJpSMZJcaHO9p25oKjmhtpv_b2UKOkgIEs-Xn8xXlymXtUSZ01x66j_BQWgV_piJE-HYcS1OOke708VMgTJHrVdjHi3TfMrE0SjLK7W8linzfeHLdaxXCtX-JwW5I32g3DpRd_vIg3o0y8V9pIi6AS6fTC7PqEhLo5ymbUHIWui4Ui-ZDPpC8sgnyDHzUABFLNnn9pQMJ5Cuuw4E-1u1CL28hOktk6aG"
               }
           ],
           "name": "Agreement Name Value"
       },
       "options": {
            "noChrome": true,
            "authoringRequested": true,
            "autoLoginUser": true
    }
    }

    You should receive a response like this:

    {
    "agreementId": "ThisIsNotARealIDValue-YgE_GEzUhJ5NZXAx1ykIdH3Pmqqu7PhcaG4M7DG24k3Qpto_MG8mzz-1uCZo4dwCi8K85PEAO7Mf"
    }