v1
latestOpenAPI 3.1.02026-07-14220425.8 KBTemplates
Create a template from Word DOCX
The API endpoint provides the functionality to create a fillable document template for an existing Microsoft Word document. Use <code>{{Field Name;role=Signer1;type=date}}</code> text tags to define fillable fields in the document. See <a href="/keyring-examples/fieldtags.docx" target="_blank" class="link font-bold" >/keyring-examples/fieldtags.docx</a> for more text tag formats. Or specify the exact pixel coordinates of the document fields using fields param.<br><b>Related Guides</b><br><a href="/keyring-guides/use-embedded-text-field-tags-in-the-pdf.html" class="link">Use embedded text field tags to create a fillable form</a>
post/templates/docx
Request body
Example request
{
"name": "Test DOCX",
"external_id": "unique-key",
"documents": [
{
"file": "base64",
"fields": [
{
"options": [
"Option A",
"Option B"
],
"validation": {
"pattern": "[A-Z]{4}"
},
"preferences": {
"font_size": 12,
"format": "DD/MM/YYYY",
"price": 99.99
}
}
]
}
]
}Response
OK