Templates
Create Template
Create a new template with a base64-encoded PDF document. The API automatically extracts the page count from the document.
post/templates
Request body
Example request
{
"name": "Employment Contract Template",
"description": "Standard employment contract for new hires",
"document": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL1Jlc291c...",
"expiration_hours": 168,
"document_id": "123e4567-e89b-12d3-a456-426614174000"
}Response
Template created successfully
Example response
{
"fields": [
{
"format_rules": {
"dateFormat": "MMMM dd, yyyy"
}
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.