Your CRM system or document management system can send/upload documents for signing either automatically or through user-initiated actions. When the document gets signed by all the parties, a PDF copy of the signed document(agreement) can be retrieved by your application.

While getting the authorization code from the Adobe Sign service, you also got the API access point as part of a query parameter (see the Getting Started section):

For all future service calls, we will be sending the requests to this access point.

Uploading a document

To upload a PDF document for signing, send a POST request to the transientDocuments endpoint. This is a multipart request consisting of filename, mime type, and the file stream. You will get back an ID as a response that uniquely represents the document. Your application needs to specify the recipients and other sending options required for sending the document for signing. Your application can also specify a callback URL that will be used by Adobe Sign to notify when the signature process is complete.

POST /api/rest/v5/transientDocuments HTTP/1.1
Access-Token: MvyABjNotARealTokenHkYyi
Content-Type: multipart/form-data
Content-Disposition: form-data; name="File"; filename="MyPDF.pdf"


You will get the following JSON body containing the transientDocumentId that will uniquely represent the uploaded document:

    "transientDocumentId": "3AAABLblqZhBVYbgJbl--NotArEaLID_zjaBYK"

The document uploaded through this call is termed as a transient document since it is available only for 7 days after the upload. 

You can only upload one file at a time through this request.

Sending the document

Once you have uploaded the document, send the document to all the related parties for signing. For this to happen, you need to create an 'agreement'.

For creating an agreement, send a POST request to /agreements endpoint with the following JSON body:

POST /api/rest/v5/agreements HTTP/1.1
Content-Type: application/json


Replace the value for the following attributes with the correct values:

  • transientDocumentId - The unique ID representing the uploaded document.
  • name - The name of the agreement.
  • email - Recipient Email address.
  • recipientSetRole - The role of the recipient. The possible values are APPROVER, DELEGATE_TO_APPROVER, DELEGATE_TO_SIGNER, and SIGNER.
  • signatureType - The type of signature you would like to request. The possible values are ESIGN and WRITTEN.
  • signatureFlow - The workflow you would like to use - whether the sender needs to sign before the recipient, after the recipient, or not at all. The possible values are SENDER_SIGNATURE_NOT_REQUIRED, SENDER_SIGNS_LAST, SENDER_SIGNS_FIRST, SEQUENTIAL or PARALLEL. 

You will get the following response containing the agreementID:

    "agreementId": "3AAABLbNOTTHEREALIDXtI5_BjiH"

The returned agreement ID must be used to refer to the agreement in all subsequent API calls. This ID must be used to retrieve up-to-date status of the agreement either by polling or when Adobe Sign notifies your application of any status change.