Articles in this section
Category / Section

How to send document from template and notify the signer through email using API?

Published:
4 mins read

This article guides you on how to send a document from template and notify signer via email using the BoldSign API. If you want to send the same set of documents repeatedly, you can create a template with the document and use the template to send out for signature.

Create a template in BoldSign’s web app

Send document to the signer via email

Below are example codes for sending a document using a template to the signer via email:

Code snippet


curl -X 'POST' \ 'https://api.boldsign.com/v1/template/send?templateId=b8085b47-xxxx-47f8-xxxx-cb0acfe2d916' \
       -H 'accept: application/json' \
       -H 'X-API-KEY: {your API key}' \
       -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
       -d '{
       "title": "Invitation form",
       "message": "Kindly review and sign this.",
       "roles": [
           {
               "roleIndex": 1,
               "signerName": "David",
               "signerEmail": "david@cubeflakes.com",
               "signerType": "Signer",
               "deliveryMode": "Email",
               "signerRole": "Landlord",
               "formFields": [
                   {
                       "id": "SignField",
                       "fieldType": "Signature",
                       "pageNumber": 1,
                       "bounds": {
                       "x": 100,
                       "y": 100,
                       "width": 100,
                       "height": 50
                       },
                       "isRequired": true
                   }
               ],      
               "locale": "EN"
           }
       ]
   }' \

In the above example, update the templateId with the ID of the template you created earlier. Update the deliveryMode as Email. Then, update the SignerEmail and SignerName properties with the email and name of the signer you want to send the document to. Also, provide form fields for the document in the formFields array.

After executing the above code, the document will be created, and an email will be sent to the signer. Now, the signer can sign the document by clicking the link in the email.

Email received by the signer after executing the above code

Email received by signer

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Access denied
Access denied