Create document template
Document API
Create Document Template
Create a new document template to standardize document processing workflows. Templates define reusable configurations including extraction schemas and fraud detection rules.
Template Components:
- Schema: Defines the expected structure of extracted data
- Fraud Config: Pipeline configuration for fraud detection. Set
requires_digital_signature: truewhen documents processed with this template must contain a signature; if no signature is detected, the fraud result includes a missing-signature RISK indicator. - Validation Fields: Date checks should be represented as boolean fields with
beltic:validation
Validation Field Pattern:
- Keep the source date field as
type: ["string", "null"]with"custom:type": "date" - Add a sibling boolean field with
"beltic:validation" - Use
field_refto reference the source date field in the same object scope - Works in top-level objects, nested objects, and array item objects
Best Practices:
- Use descriptive names and detailed descriptions for team clarity
- Test with sample documents before using in production
- Keep templates focused on specific document types (e.g., “Passport”, “Driver License”)
POST
Create document template
Authorizations
API key for authentication. Access https://console.beltic.com/ to obtain your API key.
Body
application/json
Response
Template created successfully