This endpoint allows you to create signature request(s) from your saved templates
POST
https://api.bunnydoc.com/v1/createSignatureRequestFromTemplate
Headers
Authorization: Api-Key {API_KEY}
Fields (optional)
apiLabel: Please input the api label you assigned to your field in the editor section.
The `signatureRequestLink` will only contain a URL if “SHOW ME LINKS” are enabled in your account settings.
Request Payload (Sample)
{
"templateId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"title" : "Example title here",
"emailMessage" : "Example email message here",
"signingOrder" : false,
"recipients" : [
{
"role" : "role1",
"name" : "Signer1",
"email" : "[email protected]",
"accessCode" : ""
},
{
"role" : "role2",
"name" : "Signer2",
"email" : "[email protected]",
"accessCode" : ""
}
],
"fields" : [
{
"apiLabel": "textFieldPatientHistory",
"value": "My test value",
"readOnly" : 1
},
{
"apiLabel": "sampleCheckBoxFieldLabel",
"value": true,
"readOnly" : 1
}
]
}
Response
{
"error": 0,
"message": "Envelope has been sent to recipients.",
"envelopeId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"recipients": [
{
"name": "Signer1",
"email": "[email protected]",
"signatureRequestLink": "Signing URL"
},
{
"name": "Signer12",
"email": "[email protected]",
"signatureRequestLink": "Signing URL"
}
]
}