Using pre-defined templates

emSigner allows origination of PDF documents based on existing document templates defined in emSigner. Document templates allow you to define number of signatories and their signature placeholders on one or more pages.

Document templates are of two types

  • Flexiforms

  • Form Templates

Flexiforms are document templates that allow field placeholders (such as Name, Email, Date, Textbox etc) on the document along with definition for number of signatories and their placeholders on one or more pages. In case of Flexiforms, emSigner uses the document template itself as the final document on which only the field values sent by API calls are superimposed.

Form Templates are document templates without field placeholders but with definition for number of signatories and their placeholders on one or more pages. In case of form templates, emSigner uses the document template only as a reference for the # of signatories and placeholders but expects that the API call send a request of the actual final output expected to be signed.

To get documents signed using document templates defined on emSigner, please use the following API calls along with JWT token generated as part of “Making your first API call” section as shown below

For Flexiforms

Sample Request

Key points

  1. In the above request, the PDF document is not passed as emSigner uses the document template as a base document based on the templateID passed as part of the input.

  2. Note that the Data parameter is used to populate form fields defined in the flexiform based on which the final PDF document is prepared.

  3. Please refer the POSTMAN API call for more information on the parameters used in the API call.

Sample Response

For Form Templates

Sample Request

Key points

  1. In the above request, the PDF document is passed as a BASE64 string

  2. Note that the templateID is passed as a parameter using which the # of signatories and their signature placeholders are automatically retrieved from emSigner. Therefore the coordinates need not be passed as part of the API request

  3. Workflow routing

    • If the signatories are passed, emSigner will prepare the document and send it to the participants directly without any intervention from the originator

    • In case the signatories are not passed, emSigner treats this document as a draft and allows the user or originator to login to emSigner to decide the recipients and routing before sending the document

  4. Please refer the POSTMAN API call for more information on the parameters used in the API call.

Sample Response

Last updated