const variables ={name:`Test Docs - ${signerName}`,signatureEmailSubject:'Custom email subject',signatureEmailBody:'Custom please sign these documents....',files:[{id:'sampleTemplate',castEid: pdfTemplateID,},],data:{payloads:{// 'sampleTemplate' is the sample template ID specified abovesampleTemplate:{data:{name: signerName,email: signerEmail,}}},signers:[{id:'signer1',name: signerName,email: signerEmail,signerType:'email',// These fields will be presented when this signer signs.fields:[{fileId:'sampleTemplate',fieldId:'signature',}]}]}const anvilClient =newAnvil({ apiKey })const{ statusCode, data, errors }=await anvilClient.createEtchPacket({ variables })const packetDetails = data.data.createEtchPacket
console.log('Visit the new packet on your dashboard:', packetDetails.detailsURL)
Upload a PDF, create a free etch packet, and send to your signers using the demo below to see what you can automate with JavaScript and the Anvil e-signature API.
Get a demo (from a real person)
Schedule some time on our calendar to talk through your specific use case and see which Anvil products can help.