mutation {
createEtchPacket (
signatureEmailSubject: "HR Docs",
files: [{
"id": "templateIRSW4",
"castEid": "XnuTZKVNA1Mljsu999od",
}],
data: {
// Fill PDFs with data before signing
},
signers: [{
"id": "employee",
"name": "Sally Example",
"email": "sally@example.com",
"fields": [{
"fileId": "templateIRSW4",
"fieldId": "employeeSignature",
}],
}],
) {
eid
name
status
}
}
POST https://app.useanvil.com/api/v1/fill/{id}.pdf
{
"title": "IRS W-4",
"textColor": "#333333",
"data": {
"name": "Sally Example",
"birthDate": "1984-10-31",
"address": {
"street1": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94106"
}
}
}
POST https://app.useanvil.com/api/v1/generate-pdf
{
"title": "Widget Invoice",
"data": {
"html": `
<h1>Invoice #1234</h1>
<div class="client">Client: Acme co.</div>
<div class="address">123 Main St.</div>
`,
"css": `
h1 {
font-size: 24px;
margin: 30px 0;
}
.client { color: blue; }
`,
}
}
query {
weld(eid: "XnuTZKVZg1Mljsu999od") {
eid
title
weldDatas {
eid
status
createdAt
displayTitle
completionPercentage
}
}
}
{
action: 'weldComplete',
data: {
isComplete: true,
isTest: false,
eid: 'GHEJsCVWsR1vtCx3WtUI', // WeldData eid
documents: [{
type: 'application/zip',
url: 'https://app.useanvil.com/download/GHEJsCVWsR1vtCx3WtUI.zip',
}],
weld: {
eid: 'KtHa4IhKyoZO6hbQaQJK',
slug: 'new-office'
},
forges: {
'new-office-admin': {
eid: 'v9vlkzYU0e6IKpeYimIP',
name: 'Virtual Office Setup'
},
},
submissions: {
'new-office-admin': {
eid: 'sZXFCa4EF3cVRo0Qipqc',
resolvedPayload: {
customerName: {
type: "shortText",
value: "SomeCo LLC",
label: "Customer name",
}
// ...
},
},
},
}
}
{
action: 'weldComplete',
organizationSlug: 'my-org'
organizationEid: 'BzldgdELyfX5TUizL2Lw',
weldEid: 'ELyfX5TUizL2LBzldgdw',
weldDataEid: 'bdwIX5TUiLBzldgdwzL2',
forgeEid: 'wIX5TUiLBzldgdwzL2bd',
submissionEid: 'X5TUiLBzldgdwzL2bdwI',
}
Anvil uses Public Key Infrastructure (PKI) digital certificates for identity verification in document signing, creating a pair of public and private certificates.
Documents signed on Anvil are encrypted with a 2048 RSA private key stored in a secure Hardware Security Module (HSM), ensuring no unauthorized access, including by Anvil developers.
Signatures can be verified using a PDF viewer that supports signature verification.
Anvil is proud of our industry-leading reliability with 99.99% uptime.