Skip to main content

CreateTemplateDto

namestringrequired

Template name

Example: Invoice
descriptionstring

Human-readable description

Example: Extracts key invoice fields
schemaobjectrequired

Field extraction schema

Example: {"data":{"invoiceNumber":{"type":"string","description":"Invoice number"}}}
categorystringrequired

Template category

Possible values: [INVOICE, RECEIPT, ID_DOCUMENT, CONTRACT, MEDICAL_RECORD, RESUME, CUSTOM]

Example: INVOICE
CreateTemplateDto
{
"name": "Invoice",
"description": "Extracts key invoice fields",
"schema": {
"data": {
"invoiceNumber": {
"type": "string",
"description": "Invoice number"
}
}
},
"category": "INVOICE"
}